invalid input: invalid range for first variable - Maple Help

Home : Support : Online Help : System : Error Message Guide : invalid input: invalid range for first variable

Error, (in plots/implicitplot) invalid input: invalid range for nth variable

 Description The plots[implicitplot] command computes the two-dimensional plot of an implicitly defined curve.   The invalid input: invalid range for nth variable error occurs when an unknown range is passed to the implicitplot command.

Examples

 > $\mathrm{with}\left(\mathrm{plots}\right):$

Example 1

The value of is undefined.

 > $\mathrm{implicitplot}\left({x}^{2}+{y}^{2}=1,x=0..a,y=0..1\right)$

Solution:

The solution is to define $a$.

 > $a≔1$
 ${a}{:=}{1}$ (2.1)
 > $\mathrm{implicitplot}\left({x}^{2}+{y}^{2}=1,x=0..a,y=0..1\right)$

Example 2

The arguments are passed to implicitplot out of order. For more information about the correct calling sequence, see the plots[implicitplot] help page.

 > $\mathrm{implicitplot}\left(y=0..1,x=0..1,{x}^{2}+{y}^{2}=1\right)$

Solution:

 > $\mathrm{implicitplot}\left({x}^{2}+{y}^{2}=1,y=0..1,x=0..1\right)$

Example 3

In this instance, the first range is dependent on the second variable.  It is permissible to plot an implicit plot for which the second range depends on the first variable, but the first range must evaluate to numeric values.

 > $\mathrm{implicitplot}\left(y-{x}^{2},x=0..y,y=0..x\right)$

Solution:

Specify a first range that is independent of the second variable.  For instance,

 > $\mathrm{implicitplot}\left(y-{x}^{2},x=0..2,y=0..x\right)$