Numerical Methods Exam 1 Flashcards
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)
(telescopeData)
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) 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
The order of the truncation error is reduced as more terms of the infinite series are included in the calculation.
True
The golden section method helps to minimize computational costs in finding a maximum/minimum
True
The secant method is similar to the Newton-Raphson method, but it does not require the derivative of the function to be known
it does not require the derivative of the function to be known
Only disadvantage of the Newton-Raphson method is that it requires the user to analytically find the derivative of the function
True
The secant method is similar to the ___ method(s)
Newton-Raphson
False Position
A bracket with opposite-signed function values always contains exactly one root.
False
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
opposite signs
The main disadvantage of the false position method is that it is one-sided
True
A numerical method is a well-defined procedure to solve a problem
True
the equal sign, ‘=’, is used to assign data to a variable
True
Anonymous functions need to be defined before being used
True
Truncation Error occur when using finite terms to represent an infinite series
True
Which name is valid for a variable
GPA no skipping invalid
3_skipped_labs_GPA invalid
GPA-3-skipped-labs invalid
GPA_no_skipping valid