MAE284 Final UAH 150 Questions with Correct Answers
Suppresses outputs to the command window and separates rows in an array. -Answer- Semicolon
A student is attempting to create a function file named quiz1_quiestio
...
MAE284 Final UAH 150 Questions with Correct Answers
Suppresses outputs to the command window and separates rows in an array. -Answer- Semicolon
A student is attempting to create a function file named quiz1_quiestion4.m After three tries, they type a function header that work correctly. All four attempts are listed below. Which one of the listed function headers is error-free? -Answer- function [d, e] = quiz1_question4(a, b, c)
The false position method is based on the false assumption that the function can be approximated by a(n) ________ ? -Answer- Straight Line
Bracketing methods always require two initial estimates. -Answer- True
The Bisection method is a bracketing method. -Answer- True
For the bisection algorithm, the number of iterations required to attain a particular error cannot b calculated in advance. -Answer- False
One disadvantage of the Newton-Raphson method is that it requires the user to analytically find the derivative of the function. -Answer- True
Inflection points and local maximums and minimums greatly increase the speed at which the Newton-Raphson method converges. -Answer- False
The main disadvantage of the Newton-Raphson method is that it may not converge. -Answer- True
In the Newton-Raphson method, the new estimate at x(i+1) is the intersection of the tangent line and the x-axis. -Answer- True
The main advantage of the Newton-Raphson method is that it always converges. -Answer- False
Suppose you are given a matrix A, which commands will calculate the inverse of A? -Answer- A^(-1) A^-1 inv(A)
Suppose you are given the following function: [a,b]=mae284(p,q,r,s) If the user does not specify the input value for 's', which line of code can be used to define a default value of s=100 within the function? -Answer- if nargin < 4, s=100; end
can separate both array elements and multiple commands. -Answer- , comma
Anonymous functions need to be defined before being used. -Answer- True
MATLAB can solve problems without closed-form solutions. -Answer- True
If the function values of a bracket have the same sign, there are guaranteed to be no roots in the bracket. -Answer- False
Tangent points in a function can cause an opposite-valued bracket to contain an even number of roots. -Answer- True
[Show More]