'Examples of plotting graphs
'Plot a few functions
Plot(x ^ 2 - 3)
Plot done
Plot(Sin(x))
Plot done
'Enter multiple functions in one plot command
Plot(Sin(t), Cos(t))
Plot done
'Specify properties
Plot(Figure = 2, Sin(x) + Cos(2 * x), Color = Pink)
Plot done
Plot(Figure = 2, 0.5 * x ^ 3 - 2 * x ^ 2 + x, Color = Purple)
Plot done
'Specify properties beforehand
Figure = 4;
yMin = -3;
yMax = 3;
xMax = 2;
GridStyle = Off;
Plot(Exp(0.5 * x));
Plot(Exp(0.5 * x) * Sin(2 * x));
Plot(-Exp(0.5 * x));
Figure = 5
Figure = 5
Plot(Exp(0.5 * x) * Sin(2 * x), LegendStyle = Off)
Plot done
'Set tracepoint for a function
xTrace = 1.5
xTrace = 1.570796327
'Read the traced functionvalue yTrace
yTrace
yTrace = 0
'An intersection with the x-axis is found, xTrace is
'snapped to that intersection. analyze the found xTrace
xTrace / Pi
Ans = 0.5
'Close figure 2 and 5
Close(2)
Done
Close(Figure = 5)
Done
'If you want to plot a constant, you have to give the variable explicitly
'because SpeQ is unable to detect a variable in the function.
Plot(2.25)
Plot done
'To solve the problem, define an arbitrary variable
Plot(2.25, MyFavoriteVar)
Plot done