Hi everyone,
I type the following commands in Mathematica but I don't understand why it doesn't evaluate the value of the function?
= f[x_]:=x^2 (I typed this)
Out[1]= f[x_] == x^2
=f[3] (I typed this)
Out[2]= f[3]
Meaning, it doesn't return 9. Why?
Thanks heaps!
I type the following commands in Mathematica but I don't understand why it doesn't evaluate the value of the function?
= f[x_]:=x^2 (I typed this)
Out[1]= f[x_] == x^2
=f[3] (I typed this)
Out[2]= f[3]
Meaning, it doesn't return 9. Why?
Thanks heaps!
-
It shouldn't show you an output for the original function if you press shift enter; it should leave it there with green x's. You should only get an out when you type f[3] shift enter.
Go to 5:10 on "Basic Calculations" on this video: http://www.wolfram.com/broadcast/screenc…
Basic Calculations is on the right-hand side.
Go to 5:10 on "Basic Calculations" on this video: http://www.wolfram.com/broadcast/screenc…
Basic Calculations is on the right-hand side.