calc_assign00

calc_assign00 - CivE221Assignment 0 Clara Sidrak 20569468...

• Homework Help
• 11

This preview shows pages 1–11. Sign up to view the full content.

CivE221Assignment 0 Clara Sidrak 20569468 clc, clear %CivE221 Assignment 0 %Problem #1 syms x y z eq1=2*x+3*y-1; eq2=x-3*y+z; eq3=-2*x+3*y; [x,y,z]=solve(eq1,eq2,eq3) clc, clear %CivE221 Assignment 0 %Problem #2 syms v x v = x/(x^2-1) f = (v^2+v)*(sqrt(v)+1) dfdx = diff(f,x)

This preview has intentionally blurred sections. Sign up to view the full version.

simplify(dfdx) clc, clear %CivE221 Assignment 0 %Problem #3 syms u x u = x+ sqrt(x+1) f = (u+1)^3-(1/u) dfdx = diff(f,x) simplify(dfdx) clc, clear %CivE221 Assignment 0 %Problem #4 syms x f = log(sec(x)+tan(x)) dfdx = diff(f) simplify(dfdx) clc, clear
%CivE221 Assignment 0 %Problem #5 syms x f = x-(1/4)*log(1+5*exp(4*x)) dfdx = diff(f) simplify(dfdx) clc, clear

This preview has intentionally blurred sections. Sign up to view the full version.

%CivE221 Assignment 0 %Problem #6 syms x f=x^3-x^2-5*x+4 dfdx=diff(f) roots= solve(dfdx) y=subs(f,x,roots) subplot(2,1,1) ezplot(f,[-2,3]) title('\bff(x)=x^3-x^2-5x+4') hold on, grid on plot(roots,y,'ko','markerfacecolor','r') subplot(2,1,2) ezplot(dfdx,[-2,3]); title('\bfDerivative') grid on hold off
clc, clear %CivE221 Assignment 0 %Problem #7 syms x f=x*(sqrt(x+1)) dfdx=diff(f) roots= solve(dfdx) y=subs(f,x,roots)

This preview has intentionally blurred sections. Sign up to view the full version.

subplot(2,1,1) ezplot(f,[-1,1]) title('\bfg(x)=x*(sqrt(x+1))') hold on, grid on

This preview has intentionally blurred sections. Sign up to view the full version.

This preview has intentionally blurred sections. Sign up to view the full version.

This is the end of the preview. Sign up to access the rest of the document.
• Fall '13
• gracie
• Syms, Windows games

{[ 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