Quiz11_Solution

# Quiz11_Solution - 3 Finally evaluate df 3 for a,b,x =(1...

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

Quiz 11: Symbolic Name: ASE 201 1. Write the code, utilizing the Matlab symbolic toolbox, that will find the following integral: Z 2 π 0 c [sin( ax ) cos( bx )] dx where a , b and c are constants. Save the result as the variable g . Then write the code that will give a simplified version of the result and save that as the variable h . Finally, evaluate h for ( a, b, c ) = (1 , 2 , 3). 2. Write the code, utilizing the Matlab symbolic toolbox, that will find the THIRD deriva- tive of the following function: f ( x ) = ax 3 + x sin( bx ) where a and b are constants. Save the result as the variable df 3. Then write the code that will give a simplified version of the result and save that also as the variable df
This is the end of the preview. Sign up to access the rest of the document.

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

{[ snackBarMessage ]}

### What students are saying

• As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

Kiran Temple University Fox School of Business ‘17, Course Hero Intern

• I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

Dana University of Pennsylvania ‘17, Course Hero Intern

• The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

Jill Tulane University ‘16, Course Hero Intern