Example 1: 3-D plot of a function
>
|
|
| (2.1) |
>
|
|
Solution 1: Specify rather than in the plot3d calling sequence. This solution uses an expression () as the argument to the plot3d command.
>
|
|
Solution 2: To plot the function , leave in operator form and use the second calling sequence listed on the plot3d help page.
>
|
|
Example 2: Expression with non-real values
>
|
|
In the range given, the solutions for the function are all complex values that cannot be plotted with the plot command.
Solution: Change the range to one for which the expression is real-valued.
Alternatively, to plot in the complex plane, use plots[complexplot].
Example 3: Additional parameter not given numerical value
>
|
|
The expression to be plotted includes two unknowns, but plot expects only one unknown..
Solution 1: To plot this expression, replace with a numeric value.
>
|
|
Solution 2: To create a 3-D plot of this expression, use plot3d and specify a range for .
>
|
|
Example 4: Independent variable not specified
>
|
|
Solution: To plot this function, explicitly assign the range to .
>
|
|
Important: Previously in Maple 10, you had to specify a range when entering a plot.
Example 5 (Maple 10): Function has not been assigned to anything
>
|
|
Warning, unable to evaluate the function to numeric values in the region; see the plotting command's help page to ensure the calling sequence is correct
| |
Here, plot(f) is interpreted as operator-form and a default range of -10..10 is assumed. The error occurs because has not been assigned to anything.
Example 5 (Maple 11 and later): You can enter a plot without having to specify a range.
Here, is interpreted as the independent variable. A default range of -10..10 is assumed.
>
|
|