- #1
VinnyCee
- 489
- 0
How does one revolve a function f(x) around the x-axis in MATlab or Mathematica?
How would one go about making a visual representation of a function revolved around the x-axis to make a "solid of revolution" in a program like MATlab or Mathematica? For example, a function y = sin(x) can be rotated around the x-axis from x = -3.14 to 3.14, creating a 3D object that has a volume given by the definite integral of pi*sin(x)^2 dx from -3.14 to 3.14. Please help, been trying this for days!
How would one go about making a visual representation of a function revolved around the x-axis to make a "solid of revolution" in a program like MATlab or Mathematica? For example, a function y = sin(x) can be rotated around the x-axis from x = -3.14 to 3.14, creating a 3D object that has a volume given by the definite integral of pi*sin(x)^2 dx from -3.14 to 3.14. Please help, been trying this for days!
Last edited: