cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Did you get an answer that solved your problem? Please mark it as an Accepted Solution so others with the same problem can find the answer easily. X

Why #2

ValeryOchkov
24-Ruby IV

Why #2

Why2.png

1 REPLY 1

Writing f(x):=... makes x an arbitrary variable - more precisely: the formal argument of the function. That way it has nothing to do with the variable x you defined earlier. So the attempt of the numerical evaluation therefore had to fail.

If you write f(x)= after defining the function, that x is the current argument of the function and for numerical evaluation it has to be either a constant value or a variable which had assigned a value before.

Top Tags