(Newbie question)
For every function I define I get this message:
When I close and reopen Mathematica, and re-enter the function definition, I don't get the message anymore. What does it mean?
It means you set f = 156
sometime before you executed that function definition. Executing a Remove[f]
before your new definition should have fixed the problem.
f
is already defined because it's coloured black. You can verify this using?f
too. Instead of the drasticRemove[f]
you can also useClear[f]
to clear all definitions, orf =.
to removef
's value iff
is a simple variable (in Mathematica terms: it only hasOwnValues
but notDownValues
). $\endgroup$=
sign alone. You should be use theSetDelayed
:=
sign:f[Rx_] := 25 Rx/(Rx+50)^2
$\endgroup$SetDelayed
when defining a function, but this note belongs as a comment, not an Answer. I know you do not yet have the "privilege" of posting comments but if you continue to participate that will change. For now I am converting your post into a comment on your behalf. $\endgroup$SetDelayed
instead ofSet
. But, on occasion, you can useSet
if you need the right-hand-side to be evaluated, e.g.f[x_] = Integrate[q^2, {q, 0, x}]
. This is cleaner looking than usingEvaluate
, but with the same effect. $\endgroup$