Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

4. Write a MATLAB program which computes relative root-mean-square (RMS) error, using given formulae as follows. [25 points) ERMS rims lluex || where, RMS =

image text in transcribed

4. Write a MATLAB program which computes relative root-mean-square (RMS) error, using given formulae as follows. [25 points) ERMS rims lluex || where, RMS = (u, -us)2 + (uz - u)2 + (uz - u)2 + ... + (UN+1 - ) N and ()2 + (%)2 + ( )2 + ... + ( + 1)2 u ex N Analyze the behavior of the relative error as a function of h/L = 1/N. The best way to do it is to make a log-log plot. The error typically behaves according to the power law: In = c 6 or, login = In C + ln (@) or, logrn = log C m * log(N) Both the pre-exponent, C, and the power, m, are easily found from a log-log plot which should be close to a straight line (except for very large h). First run the program using the values given in problem 1 and use N as all the even numbers in the interval [2,40). Plot error curve against the number of division and comment on your result. Now run the program using N= 2,4,6,8,10 and use log-log plot to determine m and C. 4. Write a MATLAB program which computes relative root-mean-square (RMS) error, using given formulae as follows. [25 points) ERMS rims lluex || where, RMS = (u, -us)2 + (uz - u)2 + (uz - u)2 + ... + (UN+1 - ) N and ()2 + (%)2 + ( )2 + ... + ( + 1)2 u ex N Analyze the behavior of the relative error as a function of h/L = 1/N. The best way to do it is to make a log-log plot. The error typically behaves according to the power law: In = c 6 or, login = In C + ln (@) or, logrn = log C m * log(N) Both the pre-exponent, C, and the power, m, are easily found from a log-log plot which should be close to a straight line (except for very large h). First run the program using the values given in problem 1 and use N as all the even numbers in the interval [2,40). Plot error curve against the number of division and comment on your result. Now run the program using N= 2,4,6,8,10 and use log-log plot to determine m and C

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Data Management Databases And Organizations

Authors: Richard T. Watson

2nd Edition

0471180742, 978-0471180746

More Books

Students also viewed these Databases questions

Question

How to enter sold merchandise plus tax in general journal

Answered: 1 week ago

Question

3. Describe the communicative power of group affiliations

Answered: 1 week ago