invalid input: invalid range for first variable - Maple Help

Online Help

All Products    Maple    MapleSim


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

Examples

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

withplots:

 

Example 1

The value of a is undefined.

implicitplotx2+y2=1,x=0..a,y=0..1

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

 

Solution:

The solution is to define a.

a1

a:=1

(2.1)

implicitplotx2+y2=1,x=0..a,y=0..1

 

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.

implicitploty=0..1,x=0..1,x2+y2=1

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

 

Solution:

 

implicitplotx2+y2=1,y=0..1,x=0..1

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.

implicitplotyx2,x=0..y,y=0..x

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

 

Solution:

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

implicitplotyx2,x=0..2,y=0..x

See Also

plots[implicitplot]