A Demonstration of RevSolid
A yo-yo.
Solid_Of_Rev(x^2,0,x=-1..1,XAXIS,
title=`f(x)=x², g(x)=0, a=-1, b=1`,
titlefont=[TIMES,BOLD,14],orientation=[70,70]);
A donut.
Solid_Of_Rev(sqrt(1-x^2)+2,-sqrt(1-x^2)+2,x=-1..1,XAXIS,
scaling=CONSTRAINED,
orientation=[43,84],
title=`f(x)=sqrt(1-x²)+2, g(x)=-sqrt(1-x²)+2`,
titlefont=[TIMES,BOLD,14]);
A triangular donut.
Solid_Of_Rev(3-abs(x),2,x=-1..1,XAXIS,
scaling=CONSTRAINED,
orientation=[50,84],
title=`f(x)=3-|x|, g(x)=2, a=-1, b=1`,
titlefont=[TIMES,BOLD,14]);
A leaky vase.
Solid_Of_Rev(x*(x+2)*(x-2)+9,exp(x)+1,x=-2..2,XAXIS,
orientation=[50,84],
title=`f(x)=x(x+2)(x-2)+9, g(x)=exp(x)+1, a=-2, b=2`,
titlefont=[TIMES,BOLD,14]);
A y-axis example.
Solid_Of_Rev(abs(sin(2*(x-1))/(x-1)^2)+1,-abs(sin(2*(x-1))/(x-1)^2)+1,x=2..4,YAXIS,
scaling=CONSTRAINED,
orientation=[-38,76],
title=`f(x)=|sin(2*(x-1))|/(x-1)^2+1, g(x)=-|sin(2*(x-1))|/(x-1)^2+1, a=2, b=4`,
titlefont=[TIMES,BOLD,10]);
The same thing around the x-axis.
Solid_Of_Rev(abs(sin(2*(x-1))/(x-1)^2)+1,-abs(sin(2*(x-1))/(x-1)^2)+1,x=2..4,XAXIS,
scaling=CONSTRAINED,
orientation=[-38,76],
title=`f(x)=|sin(2*(x-1))|/(x-1)^2+1, g(x)=-|sin(2*(x-1))|/(x-1)^2+1, a=2, b=4`,
titlefont=[TIMES,BOLD,10]);