f [x_] := (x + ln[x] - 3)
Plot[f[x], {x, 0, 5}]
How come this comes out with an empty graph? I tried this and same results:
Plot[[x] + ln[x] - 3, {x, 0, 4}]
I'm new to Mathematica and confused why all my graphs come oute mpty
Mathematica Stack Exchange is a question and answer site for users of Wolfram Mathematica. It only takes a minute to sign up.
Sign up to join this communityIf your plot doesn't show anything, it's often helpful to look what your plotted function does. If you evaluate e.g. f[1]
in your notebook, you'll see:
-1 + ln[1]
That's because there is no build-in function called ln
. You probably want Log
.
ln
is not a built-in function. Change this toLog[x]
. $\endgroup$=
, and it should show an orange equal sign, then if you type "plot x + ln(x) - 3 from 0 to 5" it gives this: i.stack.imgur.com/5hutm.png $\endgroup$