x 3. Plot f(x)=sin(x) and g(x)=x-++ 120 on the same graph, over the interval (-2,2] and stepsize of h=0.25 for both. Use

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899559
Joined: Mon Aug 02, 2021 8:13 am

x 3. Plot f(x)=sin(x) and g(x)=x-++ 120 on the same graph, over the interval (-2,2] and stepsize of h=0.25 for both. Use

Post by answerhappygod »

X 3 Plot F X Sin X And G X X 120 On The Same Graph Over The Interval 2 2 And Stepsize Of H 0 25 For Both Use 1
X 3 Plot F X Sin X And G X X 120 On The Same Graph Over The Interval 2 2 And Stepsize Of H 0 25 For Both Use 1 (40.83 KiB) Viewed 59 times
x 3. Plot f(x)=sin(x) and g(x)=x-++ 120 on the same graph, over the interval (-2,2] and stepsize of h=0.25 for both. Use a MATLAB function m-file to define g(x), and then use feval to evaluate g(x) for the y-values of the plot(s). Compare the graphs, and find the max error over (-2,2] by: (a) Using the graph (b) Using MATLAB's max function max(abs(f- g)) Provide a copy of your.m files and plots along with the errors above. 4. Use mesh to plot the following surfaces on R = {(x,y) - 45x54,-4 sy s 4). Use a stepsize of h =0.1, and graph them separately. (a) f(x,y)=sin(x) cos(y) (b) g(x,y)=sin(x)cos(x) Remember to use. when multiplying. Explain the difference between the two plots. 5. Graph a curve in R'. One option is to complete the example of a 3D line plot in help plot3 (Slinky) or any 3D line function of your choice. Describe your plot.
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply