Question: Objectives: Calculate the relative error, true percent relative error, or total error for a specific calculation. Create a Matlab algorithm that calculates the value of
Objectives: Calculate the relative error, true percent relative error, or total error for a specific calculation. Create a Matlab algorithm that calculates the value of a series using a specified number of terms. i-1 The infinite series shown converges on a value of 4 f (n) a n approaches infinity. Write a program in 90 matlab using a loop to compute the sum from i-1 to 10,000. Calculate the true percent relative error and name it "epsilon1" Then repreat the calculation in reverse order from 10,000 to 1 in increments of 1. Calculate the true percent relative error and name it "epsilon2" Make sure you can explain the results. Hint: Although it is possible to code this problem without using a loop, please use a loop so we can keep practicing with them. Objectives: Calculate the relative error, true percent relative error, or total error for a specific calculation. Create a Matlab algorithm that calculates the value of a series using a specified number of terms. i-1 The infinite series shown converges on a value of 4 f (n) a n approaches infinity. Write a program in 90 matlab using a loop to compute the sum from i-1 to 10,000. Calculate the true percent relative error and name it "epsilon1" Then repreat the calculation in reverse order from 10,000 to 1 in increments of 1. Calculate the true percent relative error and name it "epsilon2" Make sure you can explain the results. Hint: Although it is possible to code this problem without using a loop, please use a loop so we can keep practicing with them
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
