Ask Your Question
0

Rotational 3d

asked 2012-11-12 07:05:55 -0600

tmaxara gravatar image

How can I rotate a function like f(x)=sqrt(x) (from 0 to3) around the x-axis? I would like to have a 3D picture of the rotational.

Thanks. Thomas

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
1

answered 2012-11-12 08:07:23 -0600

calc314 gravatar image

updated 2012-11-12 08:10:38 -0600

Here is the Sage command.

revolution_plot3d(sqrt(x),(x,0,3),(0,2*pi),show_curve=True,parallel_axis='x',opacity=0.5)

I sometimes do it using my own code.

x,theta=var('x,theta')
def Vol_Rx(f,x,theta,k):
    return([x,-sin(theta)*(f(x)-k),cos(theta)*(f(x)-k)+k])
def Vol_Ry(f,x,theta,k):
    return([(x-k)*cos(theta)+k,sin(theta)*(x-k),f(x)])
f(x)=sqrt(x)
a=0
b=3
p=parametric_plot3d(Vol_Rx(f,x,theta,0),(x,a,b),(theta,0,2*pi))
p+=parametric_plot3d(Vol_Rx(f,x,0,0),(x,a,b),color='red',thickness=3)
show(p)
edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2012-11-12 07:05:55 -0600

Seen: 65 times

Last updated: Nov 12 '12

Related questions