Professional Documents
Culture Documents
Assignment VI
Assignment VI
Assignment VI
as shown.
of f(x).
Polynomial is:
f(x) = 1 + 1*x^1 + 1*x^2 + 1*x^3
The program then prompts for the starting and end point of
a range of x values together with a step.
Derivative is:
f'(x) = 1 + 2*x^1 + 3*x^2
Enter x0,x1,Step:
====================================
x
0.2
1.248
1.52
0.4
1.624
2.28
0.6
2.176
3.28
0.8
2.952
4.52
1.2
5.368
7.72
1.4
7.104
9.68
1.6
9.256
11.88
1.8
11.872 |
14.32
15
17
===================================
Write another function which prints out the expression for a polynomial
of ANY size.
The program then calculates and prints the RMS energy of f as follows:
Take the mean of the values of f(x_i) squared. The
square root of the value of the mean above is the RMS energy. You will
need to store the values of f(x) for x in the range above.
f'