Hello, dear friend, you can consult us at any time if you have any questions, add WeChat: daixieit

ENG1014 - Engineering Numerical Analysis - S1_2023

Question 7

Not yet

answered

Marked out of

2.00

 

 

The global truncation error for Eulers method scales with?

Select one:

0 a.   O(h2)

0 b.   O(h)

0 c.   O(h4)

0 d.   O(h3)

0 e.   O(h5)

 

Question 8

Not yet

answered

Marked out of

2.00

 

 

Which of the following statements is false for the function header below?

function [cat, ox, dragon] = rat(pig, snake)

Select one:

0 a.   The function name is pig

0 b.   The function can be called to return only 1 output

0 c.   There are 3 outputs

0 d.   The function le has a le format of .m

0 e.   The input variables can be named differently when calling the function

 

Question 9

Not yet

answered

Marked out of

2.00

 

 

Consider the following code snippet:

clear all;clc;

x=10;

a = 10:20;

for i=1:11

while x<1000

x = x*a(i);

end

x=x/1000;

end

How many times is the line "x = x*a(i);" evaluated before the program ends?

 

a.   22

b.   121

c.   28

d.   11