Revolution 3d Plot

## Description

Sage can revolve a 2D function around an axis to create a 3D plot with the revolution_plot3d() command. The command takes the following input:

• curve: A 2D curve to be revolved. The curve is plotted on the xz plane, with the independent variable on the x-axis and the dependent variable on the y-axis.
• trange: A tuple containing the independent variable of the function, a minimum value for the independent variable of the function and a maximum value. For example, a trange setting with variable t might look like (t, 7, 11).
• phirange: A tuple of the form (minimum angle, maximum angle) declaring the angle in which the curve is to be revolved. Defaults to (0, $\pi$)
• parallel_axis: Declares the axis that will be parallel to the revolution axis. Takes the arguments 'x', 'y' or 'z'.
• axis: A tuple declaring the location of the revolution axis:
• If parallel_axis is 'x', then the tuple should declare the point where the revolution axis intersects the yz plane
• If parallel_axis is 'y', then the tuple should declare the point where the revolution axis intersects the xz plane
• If parallel_axis is 'z', then the tuple should declare the point where the revolution axis intersects the xy plane
• show_curve: Set to True to display the curve being revolved.

## Sage Cell

#### Code

var('t')
revolution_plot3d(curve=t^2, trange=(t, 1, 3), phirange=(0, 2*pi), parallel_axis='z', axis=(0, 0), show_curve=True)


none

## Tags

Primary Tags:

Secondary Tags:

A list of possible tags can be found at The WeBWorK Open Problem Library. For linear algebra tags see the Curated Courses Project.

## Related Cells

Any related cells go here. Provide a link to the page containing the information about the cell.