Unformatted text preview: 3. Finally, evaluate df 3 for ( a,b,x ) = (1 , 2 ,π ). Solution: % 1 >> syms a b c x >> f = c*(sin(a*x)*cos(b*x)); % Do not have to have f; could put directly into int >> g = int(f,x,0,2*pi); >> h = simple(g); % or h = simplify(g) >> ans_1 = subs(h,[a,b,c],[1,2,3]);% 2 >> syms a b x >> f = a*x^3 + x*sin(b*x); % Do not have to have f; could put directly into diff >> df_3 = diff(f,x,3); >> df_3 = simple(df_3); % or df_3 = simplify(df_3) >> ans_2 = subs(df_3,[a,b,x],[1,2,pi]);...
View
Full Document
 Spring '07
 Hayes
 Derivative, Matlab Symbolic Toolbox

Click to edit the document details