in Matlab solve the following... the only ones that I can\'t get to work are the
ID: 3857575 • Letter: I
Question
in Matlab solve the following... the only ones that I can't get to work are the bolded problems, I only put the other questions so you could follow my work on the screen shot picture below of how I plugged the values into Matlab, please help.
19. The following problem spans several questions. First de ne the function f(x) = 2x2 +8x+7 symbolically. Assign to f(x).
20. Calculate f(6)f(6) -f(6 + f(9)) + f(f(2)f(3)). Assign to p19.
21. Use simplify to simplify f(1 - 4x2 + 8x3 + 7x4). Assign to p20.
22. Use solve to solve f(x) = 7. Assign to p21.
23. Use solve to solve 4f(4x) = 5 + f(x + 4). Assign to p22.
24. The following problem spans several questions. First define the function g(x) = 2/5+x symbolically. Assign to g(x).
25. Define the function h(x) = 6x + 3 symbolically. Assign to h(x).
26. Use solve to solve 4g(x) = h(5x). Assign to p25.
27. Use solve to solve g(h(x)) = h(g(x)). Assign to p26.
28. Use vpasolve to approximate all of the solutions to 5x5+9x4+3x3+6x2+3x+7 = 0. Assign to p27.
29. Use vpasolve to approximate an x-intercept of y = x/7 +cos(x/7 - 4)+e(x/7-4) -4 near x = 21. Assign to p28.
30. Use vpasolve to approximate the largest x-intercept of the function y = sin x + 0:4 (1:2x). Use a nearby sensible integer value of your choice. Find this nearby sensible integer however you wish, how you find it is not part of the assignment. Assign to p29.
Explanation / Answer
Given below are the answers-
By the way, in the image shown by you, the answer for Q21 is wrong. P20 should actually have the last term with + 7 * x ^ 4. Your image shows minus sign i.e - 7 *x^4. I have corrected that and given the answer.
syms f(x);
f(x) = 2*x.^2 +8*x+7;
p19 = f(6)*f(6) -f(6 + f(9)) + f(f(2) * f(3))
p20 = simplify(f(1 - 4*x^2 + 8*x^3 + 7*x^4))
p21 = solve(f(x) == 7)
p22 = solve(4*f(4*x) == 5+f(x+4))
p28 = vpasolve(x/7+cos(x/7-4)+exp(x/7-4)-4 == 0,x,21)
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.