Warning, expecting only range variable ... in expressions ... to be plotted but found name ...
The plot(f,x) calling sequence plots the real function, f, a function of the independent variable, x, over a horizontal real range.
This warning occurs when the expression that you are trying to plot, using the plot(f,x) calling sequence, contains unexpected names. Review the variables used to see if there is a mismatch in variable names. If you intended to explore a plot with a parameter, try using the Exploration assistant (see example 5 below).
Example 1: Parametric plot
In this example, the variable names used as arguments for the real functions to be plotted do not match the variable name given to the range variable.
Warning, expecting only range variable x in expressions [sin(t), cos(t)] to be plotted but found name t
Solution: Changing one of the variable names to match the other solves this problem. Here, t has been changed to x.
Example 2: Using e instead of exp
In this example, the letter e has been raised to a variable exponent, instead of using the calling sequence exp(x) to represent the exponential function.
Warning, expecting only range variable x in expression e^x to be plotted but found name e
Solution 1: To plot this expression, replace ex with exp(x).
Solution 2: Alternatively, add ⅇx from the Expression palette:
Example 3: Using pi instead of Pi
plot(sin(pi*x), x = 1 .. 2);
Warning, expecting only range variable x in expression sin(pi*x) to be plotted but found name pi
Solution: For calculations, use "Pi" instead of "pi".
plot(sin(Pi*x), x = 1 .. 2);
Example 4: Using i instead of I
Maple uses I to represent one of the square roots of -1. If you want to create a complex expression, you need to use I.
Warning, expecting only range variables [x, y] in expression abs(i*y+x) to be plotted but found name i
Solution: Use Uppercase I instead of lowercase i.
Example 5: Unassigned value
The constant a has not been assigned a value.
Warning, expecting only range variable x in expression x^2+a to be plotted but found name a
Solution 1: Assign a value to a
Solution 2: Use Explore to see how the plot depends on the parameter a.
From the Context Panel for the plot expression, select Explore. Use the default settings in the dialog box and click Explore to see the resulting interactive application. Use the slider to see how the graph depends on the parameter a.
Example 6: 3-D plot example with wrong name used in function
Warning, expecting only range variables [x, y] in expressions [sin(z), cos(z), y^2+z] to be plotted but found name z
Using the Explore Assistant
Using the Expression Palette
Download Help Document
What kind of issue would you like to report? (Optional)