Error, (in plot) cannot determine plotting variable
Description
Examples
This error occurs when the plot command does not have enough information to determine the independent variable to be plotted.
You may have tried to plot two functions but they are functions of different variables, or you may have left some unknown variable in your plotting expressions besides the plotting variable.
Example 1
In this example, we want to plot two functions on the same graph. However, the first is a function of t and the second is a function of x.
plotsin⁡t,x−16⁢x3
t
x
Solution
To fix the problem, use the same variable in both functions. (It can be x or t.)
plot⁡sin⁡x,x−16⁢x3
Example 2
g1≔x2−20 x−40: g1≔x2−10 x−40:
plotg1,g2
The functions g2 has not been defined. (Note the typo in the first line, where g1 is assigned twice.) To fix, change the second g1 to g2.
g1≔x2−20 x−4: g2≔x2−10 x−40:
See Also
plot
plot3d
Multiple Plots
Using the Exploration Assistant
How Do I Enter a Simple Expression?
Download Help Document