- #1
Antonija
- 18
- 0
Homework Statement
My program calculates the value of a function. Then it prints them on the screen. This is the part:
Code:
do while(x<=b)
variablesvalues(1)=x
x=x+delta
call recog_variables (func, variables)
answer=evaluate(variablesvalues)
print*, answer
end do
What I need to do now is to save theese answers into array and then work with array.
I don't know how to do it, since I tryed some ways and I get some errors which I don't understand...
Homework Equations
The Attempt at a Solution
Code:
niz1(i)=answer
1 do while(x<=b)
variablesvalues(1)=x
x=x+delta
call recog_variables (func, variables)
answer=evaluate(variablesvalues)
call destroyfunc()
end do
print*, niz1
This version works but when I compile it I get this, which has nothing to do with the numbers I should get:
Code:
-1.00291508E-09 4.56444949E-41 -3.73914588E-09 4.56444949E-41 -1.00340003E-09 4.56444949E-41 NaN 0.00000000 0.00000000 0.00000000