Write down expected output Show your work and attach scratch
Write down expected output. Show your work, and attach scratch paper as needed. dx = le-6; s = 0; for x =dx: dx: pi/2 s = s + 0.6 * (cos (x-dx) + cos(x)) * dx; end P1 = round (s * 1000)/1000 p2 = 1./((1 3; 2 4)\\(2; 3]) p3 = fzero(@ (x) polyval ([1 -3 0], x), 4) p4 = fmindnd (@ (t) - (cos(pi +t/4)^2), 1,5) y = @ (x) x^2; x = 0; while x^2 + y(x)^2
Solution
expected output
p1=1
p2 =
2
2
p4 =
4.0000
p5 =
5
