Soln_Ass4_AMATH351_topost

1 y k 2 1 2 warning expecting only range variable x in

This preview shows page 1. Sign up to view the full content.

This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: := K C 36 x C 210 x K 1 35 > p1 d plot sin 6 arcsin x > p2 d plot 131 143 1287 C xC 12 12 32 K (1.8) (1.8) 3 , polynom ; (1.9) (1.9) , x = 0 ..2, y =K ..2, color = blue ; 2 p1 := PLOT ... (1.10) poly1 , x = 0 ..2, y =K ..2, color = red, linestyle = dash ; 2 p2 := PLOT ... (1.11) (1.11) poly3 , x = 0 ..2, y =K ..2, color = green, linestyle = dash ; 2 p3 := PLOT ... (1.12) (1.12) > with plots : > display p1, p2, p3 ; 2 y 1 0 0.5 1 x 1.5 2 K 1 K 2 > plot rhs soln1 K convert rhs soln2 , polynom , x =K ..1, y =K ..2 ; 1 2 Warning, expecting only range variable x in expression _C1*sin (6*arcsin(x))+_C2*cos(6*arcsin(x))-_C1*(x-1)^(1/2)* (-131/12+143/12*x+1287/32*(x-1)^2)-_C2*(-35+36*x+210*(x-1)^2) to be plotted but found names [_C1, _C2] 2 y K 1 K 0.5 1 0 0.5 x 1 K 1 K 2 Legendre's Equation > p d 10; p := 10 > ode1 d 1 K x2 \$diff y x , x, x K 2\$x\$diff y x , x C p\$ p C 1 \$ y x = 0; d2 d 2 ode1 := K C 1 x y x K2 x y x C 110 y x = 0 2 dx dx ode1, y 0 = 1, D 1 y 0 = 0 , y x ; 46189 10 12155 8 1430 4 soln1 := y x = K xC x K 1430 x6 C x K 55 x2 C 1 63 7 3 (2.1) (2.1) (2.2) (2.2) > soln1 d dsolve (2.3) (2.3) > Order d 4; Order := 4 > soln2 d dsolve (2.4) (2.4) ode1, y 0 = 1, D 1 y 0 = 0 , y x , series ; soln2 := y x = 1 K 55 x2 C O x4 (2.5) > p1 d plot rhs soln1 , x =K ..1, y =K ..2, color = blue ; 1 2 p1 := PLOT ... (2.6) > p2 d plot convert rhs soln2 , polynom , x =K ..1, y =K ..2, color = red, linestyle 1 2 = dash ; p2 := PLOT ... (2.7) (2.7) > with plots : > display p1, p2 ; 2 y K 1 K 0.5 1 0 0.5 x K 1 K 2 > plot rhs soln1 K convert rhs soln2 , polynom , x =K ..1, y =K ..2 ; 1 2 1 2 y K 1 K 0.5 1 0 K 1 K 2 > ? dsolve/series 0.5 x 1...
View Full Document

This document was uploaded on 01/26/2014.

Ask a homework question - tutors are online