Question: Write a function named ser whose inputs are a function a number and a positive integer . It will return the matrix , where the

Write a function named ser whose inputs are a function a number and a positive integer . It will return the matrix , where the first element is , and then each successive number is the x raised to an additional power and divided by that power. Use a loop to create the matrix until the size of the matrix becomes .
The following is an example of how your function would be used in the command window:
>> ser(2.8,1)
ans =
2.8000
>> ser(1,5)
ans =
1.00000.50000.33330.25000.2000
>> ser(-1,7)
ans =
-1.00000.5000-0.33330.2500-0.20000.1667-0.1429

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!