(4 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
Here's a place where we can list our favorite MAPLE commands. | Here's a place where we can list our favorite MAPLE commands. | ||
− | < | + | <div class="code">with(plots): |
− | with(plots): | + | implicitplot( x^2/9 + y^2/4 = 1 , x=-4..4, y=-3..3 ); |
− | implicitplot( x^2/9 + y^2/4, x=-4..4, y=-3..3 ); | + | |
plot( [3*cos(t),2*sin(t), t=0..2*Pi] ); | plot( [3*cos(t),2*sin(t), t=0..2*Pi] ); | ||
− | p1 := plot( [3*cosh(t),2*sinh(t), t=-2..2] , | + | p1 := plot( [3*cosh(t),2*sinh(t), t=-2..2] , [-3*cosh(t),2*sinh(t), t=-2..2], color=red ): |
− | p2 := plot( { (2/3)*x, -(2/3)*x }, x=-11..11 ): | + | p2 := plot( { (2/3)*x, -(2/3)*x } , x=-11..11 ): |
display( {p1,p2} ); | display( {p1,p2} ); | ||
− | f := x -> (8/Pi) * sum( ((-1)^(n+1)/(2*n-1)^2)*sin(( | + | f := x -> (8/Pi) * sum( ((-1)^(n+1)/(2*n-1)^2)*sin((2*n-1)*x), n=1..20 ); |
− | plot( f(x), x=0..Pi ); | + | plot( f(x), x=0..Pi );</div> |
− | </ | + | |
See also Bell's [http://www.math.purdue.edu/~bell/Course/maple.html MAPLE Tutorial]. | See also Bell's [http://www.math.purdue.edu/~bell/Course/maple.html MAPLE Tutorial]. |
Latest revision as of 05:30, 12 December 2008
Here's a place where we can list our favorite MAPLE commands.
with(plots):
implicitplot( x^2/9 + y^2/4 = 1 , x=-4..4, y=-3..3 );
plot( [3*cos(t),2*sin(t), t=0..2*Pi] );
p1 := plot( [3*cosh(t),2*sinh(t), t=-2..2] , [-3*cosh(t),2*sinh(t), t=-2..2], color=red ): p2 := plot( { (2/3)*x, -(2/3)*x } , x=-11..11 ): display( {p1,p2} );
f := x -> (8/Pi) * sum( ((-1)^(n+1)/(2*n-1)^2)*sin((2*n-1)*x), n=1..20 );
plot( f(x), x=0..Pi );See also Bell's MAPLE Tutorial.