revolution

The solid swept out by turning the region under y = f(x) about an axis.

revolutionNode
Only withxyzplane
On this page
The region under y = √x on [0, 4] turned about the x axis into a solid like a bell lying on its side.The region under y = √x on [0, 4] turned about the x axis into a solid like a bell lying on its side.

#Attributes

expressionRequiredImplicitAnimatable
The profile, y = f(x).
Also written: f, outerCan be written as shorthand: revolution:value
innerAnimatable
An inner profile, which makes the cross-sections washers.
Also written: g
aboutAnimatable
The axis it turns about.
xy
Defaultx
xRequiredAnimatable
The interval of x the profile runs over.
Also written: domain
colourAnimatable
The solid's colour.
paint
Also written: color
Defaultpurple
opacityAnimatable
How solid it is, 0 to 1.
Default0.4
label
Words drawn beside it, over everything.
hiddenAnimatable
Declared but not drawn.
Defaultfalse
lock
Stops the reader editing it.
Also written: locked
Defaultfalse
layerAnimatable
Accepted for parity with the flat marks; in space the paint order is depth.
group
The groups this mark belongs to, comma-separated.

#Derived attributes

Computed while the element renders — read one with #id.name in attribute position or {{#id.name}} in prose, never set.

volumeDerived
The solid's volume in cubic units of the box.

#Allowed in

#Examples

The region between y = √x and y = x/2 turned about the x axis, a solid with a hollow core, with a washer cut at x = 2.The region between y = √x and y = x/2 turned about the x axis, a solid with a hollow core, with a washer cut at x = 2.
graph:xyz{
    revolution#vase(expression: sqrt(x); inner: x / 2; x: [0, 4]; opacity: 0.5)
    section(of: #vase; x: 2; thickness: 0.15)
}(
    x domain: [0, 4]
    y domain: [-2, 2]
    z domain: [-2, 2]
    aspect: equal
)
The region under y = 2x² − x³ on [0, 2] turned about the y axis — the solid the shell method cuts up.The region under y = 2x² − x³ on [0, 2] turned about the y axis — the solid the shell method cuts up.
graph:xyz{
    revolution(expression: 2x^2 - x^3; about: y; x: [0, 2]; colour: blue)
}(
    x domain: [-2, 2]
    y domain: [0, 2]
    z domain: [-2, 2]
    aspect: equal
)

#Notes

  • About x its cross-sections are discs, or washers with inner:.
  • About y it is the solid the shell method cuts up: a shell cuts one shell from it.
  • Space only (graph:xyz).

Last updated