Numerical Methods Exam 1 Flashcards

1
Q

A NASA intern is writing a function with a single input in MATLAB to help detect sunspots automatically, but unfortunately they never payed attention in numerical methods and can’t remember how.

function sunspots(telescopeData)

A

(telescopeData)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

The equation below is being evaluated in MATLAB. For each labeled operation, indicate whether it requires a dot operator.
a0 and gc are scalars, and V9, m0 and M0 are vectors of the same length.
T = a0 m0 / gc (V9 / a0 - M0)

A

a) The multiplication between a0 and m0.
No

b) The divide between m0 and gc.
Yes

c) The multiplication between gc and term in ().
Yes

d) The division between V9 and a0.
No

e) The subtraction between a0 and M0.
No

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

The order of the truncation error is reduced as more terms of the infinite series are included in the calculation.

A

True

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

The golden section method helps to minimize computational costs in finding a maximum/minimum

A

True

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

The secant method is similar to the Newton-Raphson method, but it does not require the derivative of the function to be known

A

it does not require the derivative of the function to be known

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Only disadvantage of the Newton-Raphson method is that it requires the user to analytically find the derivative of the function

A

True

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

The secant method is similar to the ___ method(s)

A

Newton-Raphson
False Position

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

A bracket with opposite-signed function values always contains exactly one root.

A

False

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Bracketing methods are based on the idea that if two function values f1 and f2 have ______, there must be at least one root between them

A

opposite signs

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

The main disadvantage of the false position method is that it is one-sided

A

True

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

A numerical method is a well-defined procedure to solve a problem

A

True

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

the equal sign, ‘=’, is used to assign data to a variable

A

True

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Anonymous functions need to be defined before being used

A

True

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Truncation Error occur when using finite terms to represent an infinite series

A

True

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Which name is valid for a variable

A

GPA no skipping invalid

3_skipped_labs_GPA invalid

GPA-3-skipped-labs invalid

GPA_no_skipping valid

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

There are many causes of Round-off error. What is one of those causes?

A

The computer is limited in how precisely we can store numbers

17
Q

discontinuous functions can result in a bracket with opposite-signed function values having an even number of roots

A

True

18
Q

The bisection method is most effective when there are multiple roots inside a bracket. (T/F)

A

False

19
Q

The main disadvantage of the false position method is that it can diverge. (T/F)

A

False

20
Q

Newton-Raphson is not an iterative method. (T/F)

A

False

21
Q

The secant method requires two initial estimates of x, but does not require an analytical expression of the derivative. (T/F)

A

True

22
Q

MATLAB’s built-in fzero function is uses a combination of bisection, secant, and inverse quadratic interpolation methods and a search method if only one input is provided . (T/F)

A

True

23
Q

Select all of the root-finding methods that require only one initial guess. Check all that apply:

A

Newton- Raphson
Modified Secant

24
Q

The golden section method divides the interval into three sections.

A

True

25
Q

Numerical methods can be used to solve problems with open form solutions.

A

True

26
Q

Pseudocode is ________.

A

a computer-like implementation of a flowchart that does not use any particular program’s syntax

27
Q

MATLAB’s fminsearch function can be used to find the minimum value of a function of two or more independent variables

A

True

28
Q

All mathamatical problems have a closed - form solution (they can be solved for a variable without having to make guesses.

A

false

29
Q

A computer scientist is attempting to automate the process of cooking hamburgers . They are using MATLAB to analyze some data, and need a function file that doesn’t have any output variables. Click the dropdown menu to complete the header.
function flippingBurgers(burgerTemperature,juiceIndex,condimentArray)

A

function

30
Q

What is the closest correct definition of Round-off error?

A

An error that arises because of how many digits of a number are used.

31
Q

The main advantage of the bisection algorithm is that it always converges

A

True

32
Q

Tangent points in a function can cause an opposite valued bracket to contain an even number of roots (T/F)

A

True

33
Q

The secant method is similar to the newton-raphson method, but it uses an approximation of the derivative (T/F)

A

True

34
Q

In the golden section method, if f(x1) < f(x2), then the new search interval is from xlow to x1.

A

False