- #1
member 428835
Hi PF!
I have a series of calculations I'm executing in Mathematica, and all expressions use the delayed := equality. At the end I am trying to plot a function, and for this example let's say it's
When I plot, I am forced to plot in the form
This method takes FOREVER! However, if I first evaluate f[x], copy-paste it into the plot, this happens much quicker (the evaluation takes some time and obviously the plot is instantaneous, but both are so much faster than the y-plot technique).
Anyone know how I can speed this up without doing the manual inputs?
I have a series of calculations I'm executing in Mathematica, and all expressions use the delayed := equality. At the end I am trying to plot a function, and for this example let's say it's
Code:
f[x_]:=x
Code:
Plot[f[x]/.x->y , {y,-1,1}
Anyone know how I can speed this up without doing the manual inputs?