0
$\begingroup$

When I define a function and try to plot it with its name inside the Plot[] argument my plot doesn't appear.

enter image description here

However, when I write the the entire function inside the Plot[] argument the plot works enter image description here

How can I solve this to have the plot appearing in the first image?

$\endgroup$
0

1 Answer 1

1
$\begingroup$

You need to pass the argument,

f[x_]:=x^2;

Now to plot the function then you need to have,

Plot[f[x],{x,0,1}]
$\endgroup$

Not the answer you're looking for? Browse other questions tagged or ask your own question.