Maple Lab Test Solutions

1371 WordsSep 30, 20126 Pages
> # Ho's Maple Lab Test Solution: Semester 1 2012 (1) # Question 1; > evalf(100*sin(95),38); 68.326171473612098369957981656827095404 > # Queston 2; > f:=x->3*sin(1/4*x^4)-sin(3/4*x)^4; (2) > # Find 1st derivative; > D(f); (3) > # Find turning/stationary point in the interval [1,2], 1st derivative expression = 0, 10 significant figures!; > evalf(fsolve(3*cos((1/4)*x^4)*x^3-3*sin((3/4)*x)^3*cos((3/4)*x)= 0,x=1..2),10); 1.562756908 (4) > # Find 2nd derivative at x= 1.562756908; 10 significant figures!; > evalf(D[1$2](f)(1.562756908),10); (5) > # Remember to unassign variables/restart; > restart; > # Question 3; (same process as above) > f:=x-> 2^x + 2*cos(x); (6) > # Find 1st derivative; > D(f); (7) > # Find turning/stationary point…show more content…
4 0 0 1 2 3 4 4 2 > # Remember to unassign variables/restart; > restart; > > > > > # Question 19; # Remember to load Plot Packages; with(plots): # Plot the curve; polarplot(2*sin(theta)-cos(5*theta),theta=0..2*Pi); 2 4 4 0 0 1 2 4 4 2 > # Remember to unassign variables/restart; > restart; > > > > > # Question 20; # Remember to load Plot Packages; with(plots): # Plot the curve; polarplot(sin(theta)+2*cos(5*theta),theta=0..2*Pi); 2 4 4 0 0 1 2 4 4 2 > # Remember to unassign variables/restart; > restart; > > > > > # Question 21; # Remember to load Plot Packages; with(plots): # Plot the curve; polarplot(2*sin(3*theta)-3*cos(2*theta),theta=0..2*Pi); 2 4 4 0 0 1 2 3 4 4 4 2 > # Remember to unassign variables/restart; > restart; > # Question 22; > g1:=4*x-x*y^2=5; (42) > g2:=1/3*(x^2)*y+tanh(y)=1; (43) > graphs:=[g1,g2]; (44) > # Remember to load Plot Packages; > with(plots): > implicitplot(graphs,x=-10..10,y=-10..10); 10 y 5 0 5 x 10 > # Answer = 1 (Just count the number of intersections > # Remember to unassign variables/restart; > restart; > # Question 23; > piecewise(x restart; > # Question > ; 24; (46) (46) > ; (47) > # Remember to unassign variables/restart; > restart; > # Question 25; > # Note: Make sure the Linear Algebra package is loaded before doing Row Operations; > with(LinearAlgebra): > # Answer: RowOperation(M,[3,4]) > # Answer:
Open Document