Menu

[Solved] 2 Write Script Matlab Create Table Values Similar Table 27 Obtained Evaluating Given Funct Q37177555

2. Write a script in Matlab to create a table of values (similar to Table 2.7) obtained by evaluating the given functions bel

% compute f(x) % 10(-28) (1-cos (x))/x^2 for decreasing values of from 10(-1) and x for i-1:2, x-104(-i); disp (sprintf(%g

Want the MATLAB CODE

2. Write a script in Matlab to create a table of values (similar to Table 2.7) obtained by evaluating the given functions below as they are written, and also as a reformulation designed to eliminate loss-of-significance errors. Choose r from 10-1 to 10-20 decreasing by 0.1 in both sub-problems below (modify the example script samp-prob2.m that is provided to do this). (a) Apply your script to the function F(r)2 and an appropriate reformulation of f(z). Comment on what is happening and why (b) Apply your script to the function f(z) = and an appropriate reformulation of f(z). Comment on what is happening and why. % compute f(x) % 10″(-28) (1-cos (x))/x^2 for decreasing values of from 10″(-1) and x for i-1:2, x-104(-i); disp (sprintf(%g t xe.1ef,x,(1-cosl(x))/x2)) end % Compute a reformulation of f(x) (1-cos(x))/x^2 in the form % Rf(x)- (2sin^2(x/2))/x^2, for decreasing values of x from 10″(-1) % 10″(-28) and for i-1:20, x-10 (-i); end Show transcribed image text 2. Write a script in Matlab to create a table of values (similar to Table 2.7) obtained by evaluating the given functions below as they are written, and also as a reformulation designed to eliminate loss-of-significance errors. Choose r from 10-1 to 10-20 decreasing by 0.1 in both sub-problems below (modify the example script samp-prob2.m that is provided to do this). (a) Apply your script to the function F(r)2 and an appropriate reformulation of f(z). Comment on what is happening and why (b) Apply your script to the function f(z) = and an appropriate reformulation of f(z). Comment on what is happening and why.
% compute f(x) % 10″(-28) (1-cos (x))/x^2 for decreasing values of from 10″(-1) and x for i-1:2, x-104(-i); disp (sprintf(%g t xe.1ef,x,(1-cosl(x))/x2)) end % Compute a reformulation of f(x) (1-cos(x))/x^2 in the form % Rf(x)- (2sin^2(x/2))/x^2, for decreasing values of x from 10″(-1) % 10″(-28) and for i-1:20, x-10 (-i); end

Expert Answer


Answer to 2. Write a script in Matlab to create a table of values (similar to Table 2.7) obtained by evaluating the given function… . . .

OR


Leave a Reply

Your email address will not be published. Required fields are marked *