Functions > Graphing > Example: Using CreateSpace and CreateMesh
  
Example: Using CreateSpace and CreateMesh
Use CreateSpace and CreateMesh in 3D plots.
A Vector-Valued Function of a Single Parameter
1. Define an input function.
Click to copy this expression
2. Define the input lower limit and upper limit.
Click to copy this expression
Click to copy this expression
3. Use the CreateSpace built-in function and plot the result.
Click to copy this expression
Click to copy this expression
CreateSpace returns 20 points between a0 and a1. These points are connected to form a 3D-curve
Three Functions of a Single Parameter
1. Define three separate functions for radius, horizontal angle and vertical angle in spherical coordinates.
Click to copy this expression
Click to copy this expression
Click to copy this expression
2. Define the number of plotted points.
Click to copy this expression
3. Define the curve using CreateSpace. Add sph2xyz as the last argument. This is a built-in function to map spherical coordinates to XYZ coordinates. You can then plot the spherical coordinates on a regular 3D plot.
Click to copy this expression
4. Plot the CreateSpace result.
Click to copy this expression
A Vector-Valued Function of Two Parameters
Create a parametric surface, using CreateMesh.
1. Define a vector-valued function, with two parameters, defining spherical coordinates.
Click to copy this expression
2. Use the CreateMesh built-in function and plot the result.
Click to copy this expression
Click to copy this expression
Three Functions of Two Parameters
1. Define three functions to plot, representing the three coordinates.
Click to copy this expression
Click to copy this expression
Click to copy this expression
2. Define the input mesh size of the two variables. Define the number of points in the ranges of u and v.
Click to copy this expression
Click to copy this expression
3. Use the CreateMesh built-in function and plot the result.
Click to copy this expression
Click to copy this expression