Previous: References:
Up: 15 Engineering Programming Examples
Previous Page: References:
- Write a menu driven program that allows the user to specify a matrix
operation: add, subtract, multiply.
Write a simple calculator program that performs complex number arithmetic.
The input should be an operand, followed by an operator, followed by an
operand. The output should be the result of applying the operator to operands.
- Repeat 2,
but allow the user to continue entering operators and operands
in sequence. The user may also request that a value should be saved for later
use.
- Evaluate a polynomial
with specified coefficients for a complex value
of the variable. The highest degree of the polynomial is 10. The user must
enter coefficient and exponent pairs for the polynomial, and specify the value
of the variable for which the polynomial is to be evaluated.
- Consider a rational function of a variable
:
where
and
are polynomials in a variable,
,
with real coefficients.
Evaluate the function for a value of
.
Evaluate the function for
different values of
. Plot the magnitude and angle of the values.