Question: 4. ( 5 points) Create a script file (final_p4-yourlastname.m) that asks the user to input n and evaluate the sum using for loop and print
4. ( 5 points) Create a script file (final_p4-yourlastname.m) that asks the user to input n and evaluate the sum using for loop and print the sum when n=1000 using %15.12f format i=1n4n34i24i1 (Hint: the sum should approximate 1/3 )
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
