Docsity

APPLIED NUMERICAL METHODS WITH PYTHON FOR ENGINEERS AND SCIENTISTS FINAL PAPER FULL QUESTI, Exams of Mathematical Modeling and Simulation

Toggle sidebar
bg1
APPLIED NUMERICAL METHODS WITH
PYTHON FOR ENGINEERS AND SCIENTISTS
FINAL PAPER FULL QUESTIONS AND
CORRECT ANSWERS ALREADY PASSED
โ—โ— The equal sign "=" is used to assign values to a variable. (True/False:
True, False)
Answer: True
โ—โ— MATLAB function definition for single parameter: function sunspots
[The function is fine as-is, [telescopeData], (telescopeData),
{telescopeData}]
Answer: (telescopeData)
โ—โ— For a0 and v scalars, and g and u vectors, indicate dot operator
requirement:
a) exponent a0^2 [Yes, No]
b) divide (g-1)/2 [Yes, No]
c) multiplication 2*(...) [Yes, No]
d) exponent u^2 [Yes, No]
e) exponent v^2 [Yes, No]
Answer: a No b No c Yes d Yes e Yes
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe

Partial preview of the text

Download APPLIED NUMERICAL METHODS WITH PYTHON FOR ENGINEERS AND SCIENTISTS FINAL PAPER FULL QUESTI and more Exams Mathematical Modeling and Simulation in PDF only on Docsity!

APPLIED NUMERICAL METHODS WITH

PYTHON FOR ENGINEERS AND SCIENTISTS

FINAL PAPER FULL QUESTIONS AND

CORRECT ANSWERS ALREADY PASSED

โ—โ— The equal sign "=" is used to assign values to a variable. (True/False: True, False) Answer: True โ—โ— MATLAB function definition for single parameter: function sunspots [The function is fine as-is, [telescopeData], (telescopeData), {telescopeData}] Answer: (telescopeData) โ—โ— For a0 and v scalars, and g and u vectors, indicate dot operator requirement: a) exponent a0^2 [Yes, No] b) divide (g-1)/2 [Yes, No] c) multiplication 2*(...) [Yes, No] d) exponent u^2 [Yes, No] e) exponent v^2 [Yes, No] Answer: a No b No c Yes d Yes e Yes

โ—โ— Truncation error occurs when using finite terms to represent an infinite series. (True/False: True, False) Answer: True โ—โ— Numerical methods cannot be used to solve problems with open form solutions. (True/False: True, False) Answer: False โ—โ— Vectors are transposed using the ' operator. (True/False: True, False) Answer: True โ—โ— For R, T scalars and P, A, V vectors, indicate dot operator requirement: a) P/(...) [Yes, No] b) RT [Yes, No] c) (...) * A [Yes, No] d) AV [Yes, No] Answer: a No b No c Yes d Yes โ—โ— If error is O(h), halving step size results in: [doubled, halved, no change, quarter] Answer: halved

โ—โ— The secant method uses: [imaginary line, polynomial fit, matrix inversion, Fourier series] Answer: imaginary line โ—โ— Methods that use an imaginary line: [incremental search, false position, Newton-Raphson, bisection] Answer: false position, Newton-Raphson โ—โ— The modified secant method does not require specifying a value for: [derivative, function value, initial guess, step size] Answer: derivative โ—โ— MATLAB's fzero function is based on: [Newton-Raphson, bisection, secant, Gauss elimination] Answer: Newton-Raphson โ—โ— The parabolic interpolation method is usually faster than: [golden section, bisection, Newton-Raphson, secant] Answer: golden section โ—โ— A root of f(x) is a value where:

[f(x)=0, f(x)=1, f(x)=x, f(x)=โˆž] Answer: f(x)= โ—โ— Tangent points can cause a bracket to contain: [zero roots, even number of roots, one root only, no roots always] Answer: even number of roots โ—โ— For Newton-Raphson, iteration 3 uses: [first guess, second guess, previous iteration result, random value] Answer: previous iteration result โ—โ— The secant method is: [guaranteed convergent, not guaranteed convergent, always exact, exact derivative method] Answer: not guaranteed convergent โ—โ— Golden section method requires: [1, 2, 3, 4] initial points Answer: 2 โ—โ— Parabolic interpolation requires: [1, 2, 3, 4] initial points

โ—โ— False position is typically: [faster than bisection, slower than bisection, identical to Newton- Raphson, exact] Answer: slower than bisection โ—โ— Single initial guess methods: [Bisection, Secant, False Position, Modified Secant, Newton-Raphson] Answer: Modified Secant, Newton-Raphson โ—โ— Before finding roots you should: [Graph the function, apply quadratic formula, compute derivatives, integrate function] Answer: Graph the function โ—โ— Pseudocode is: [a computer-like description of steps without syntax, MATLAB code, compiled program, machine binary] Answer: a computer-like description of steps without syntax โ—โ— If only first four terms of infinite series are used, this introduces: [round-off error, truncation error, no error, instability] Answer: truncation error

โ—โ— An analytical solution is: [exact, approximation, numerical method, undefined] Answer: exact โ—โ— A function with no outputs is declared using: [function, script, class, variable] Answer: function โ—โ— Truncation error decreases when: [more terms are added, fewer terms are added, step size increases, derivative removed] Answer: more terms are added โ—โ— If function values at a bracket have same sign: [guaranteed root, no guarantee of root, always root, infinite roots] Answer: no guarantee of root โ—โ— Roots of a function occur where: [cross x-axis, cross y-axis, equal slope, maximum value] Answer: cross x-axis

[newest values immediately, only old values, random values, no iteration] Answer: newest values immediately โ—โ— Elimination involves: [combining equations, solving derivatives, graphing, integration only] Answer: combining equations โ—โ— Numerical integration can use discrete data. (True/False) Answer: True โ—โ— More segments increases accuracy. (True/False) Answer: True โ—โ— Simpson 3/8 rule uses: [3 points, 2 points, 8 points, 1 point] Answer: 3 points โ—โ— Gauss quadrature uses: [Gauss-Legendre formulas, Euler method, Newton-Raphson, finite differences] Answer: Gauss-Legendre formulas

โ—โ— Romberg method uses: [Richardson extrapolation, Euler method, Gaussian elimination, secant method] Answer: Richardson extrapolation โ—โ— Trapezoid rule approximates function by: [straight line, parabola, cubic polynomial, exponential curve] Answer: straight line โ—โ— Quadrature means: [integration, differentiation, solving ODEs, matrix inversion] Answer: integration โ—โ— LU factorization is useful when: [multiple b vectors, changing matrix, nonlinear system, no solution] Answer: multiple b vectors โ—โ— Cholesky requires matrix to be: [symmetric, diagonal, identity, triangular only] Answer: symmetric โ—โ— ODE means:

โ—โ— Underdamped system: [oscillates, no motion, constant decay, unstable explosion] Answer: oscillates โ—โ— If n nodes, unknowns in finite difference: [n-2, n, n+2, 1] Answer: n- 2 โ—โ— Stiff system requires: [implicit methods, explicit only, no methods, analytic solution] Answer: implicit methods โ—โ— Euler method is: [first order method, second order, exact method, spectral method] Answer: first order method โ—โ— ODE45 is: [adaptive method, fixed step, explicit Euler, implicit solver only] Answer: adaptive method โ—โ— Superposition works for:

[linear systems, nonlinear systems, all systems, none] Answer: linear systems โ—โ— Most accurate fixed step method: [4th order Runge-Kutta, Euler, Heun, Midpoint] Answer: 4th order Runge-Kutta โ—โ— Underdamped system: [oscillatory, overdamped, static, linear only] Answer: oscillatory โ—โ— Boundary condition types include: [Neumann, Robin, Dirichlet, Gauss] Answer: Neumann, Robin, Dirichlet โ—โ— Backward difference uses: [current and right points, left points only, midpoint only, random points] Answer: current and right points โ—โ—