Question: Modify your code ( sine _ series, from Problems 2 & 3 ) so that it uses a default value of n = 5 if

Modify your code (sine_series, from Problems 2 & 3) so that it uses a
default value of n =5 if the user does not specify a value for n.(Hint:
Use the function nargin.)
To demonstrate that your code works:
a) Evaluate the function with x = p/6 and n =2;
b) Evaluate the function with x = p/6, and no input for n

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!