Say that you are interested in the value of the quadratic...
3X2 - 8X + 4
...for several values of X. Write a program that has a double precision variable X. Assign a value to it. Write statement that computes a value for the quadratic and stores the result in another double precision variable. Finally write out the result, something like:
At X = 4.0 the value is 20.0
3X2 - 8X + 4
...for several values of X. Write a program that has a double precision variable X. Assign a value to it. Write statement that computes a value for the quadratic and stores the result in another double precision variable. Finally write out the result, something like:
At X = 4.0 the value is 20.0