Docsity

APPLIED NUMERICAL METHODS WITH PYTHON FOR ENGINEERS AND SCIENTISTS (4), Exams of Nursing

Toggle sidebar
bg1
APPLIED NUMERICAL METHODS WITH
PYTHON FOR ENGINEERS AND
SCIENTISTS (4)
Question:
1ST EDITION STEVEN CHAPRA DAVID
CLOUGH SOLUTIONS MANUAL ALL
CHAPTERS FINAL STUDY GUIDE 2026
SOLVED QUESTIONS FULLY CORRECT
 Many built-in functions will accept scalars or vectors as input
arguments. In general they operate element by element when the input is
a vector.
T/F
Answer:
True
 Below is a list of operations that may all be included in a single
command. Please put these in the order by which MATLAB evaluates
them when executing the command. Note operations on the same
precedence level are executed left to right. Also, the order of operations
can be overridden using parentheses.
-exponentiation (^)
-multiplication and division (* /)
-addition and subtraction (+ -)
Question:
-parentheses ()
Answer:
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff

Partial preview of the text

Download APPLIED NUMERICAL METHODS WITH PYTHON FOR ENGINEERS AND SCIENTISTS (4) and more Exams Nursing in PDF only on Docsity!

APPLIED NUMERICAL METHODS WITH

PYTHON FOR ENGINEERS AND

SCIENTISTS (4)

Question:

1ST EDITION STEVEN CHAPRA DAVID

CLOUGH SOLUTIONS MANUAL ALL

CHAPTERS FINAL STUDY GUIDE 2026

SOLVED QUESTIONS FULLY CORRECT

Many built-in functions will accept scalars or vectors as input arguments. In general they operate element by element when the input is a vector. T/F

Answer:

True Below is a list of operations that may all be included in a single command. Please put these in the order by which MATLAB evaluates them when executing the command. Note operations on the same precedence level are executed left to right. Also, the order of operations can be overridden using parentheses. -exponentiation (^) -multiplication and division (* /) -addition and subtraction (+ -)

Question:

-parentheses ()

Answer:

1 - parentheses () 2 - exponentiation (^) 3 - multiplication and division (* /) 4 - addition and subtraction (+ -)

Question:

Where you enter MATLAB commands at the prompt

Answer:

Command Window

Question:

Records all previous commands

Answer:

Command History Tracks the values of variables as they are created and/or modified

Question:

Answer:

Workspace Indicates the folder on the computer where MATLAB is looking for

Question:

files

Answer:

Current Folder The list below shows a variety of assignment commands. Select the

Question:

True/False

Answer:

True Match the MATLAB command with the appropriate verbal explanation of what the command is doing. All of these commands refer to a vector x = [2 -1 3 1.7 99 8] z = x([2 5]).^ z = x(1: 4) z = x(end-1: end);

Question:

z = x(4)

Answer:

z = x([2 5]).^

  • Square the second and z = x(1: 4) -Assign the first through z = x(end-1: end); -Assign the last two elements z = x(4) -Assign the fourth element Which of the following commands creates a column vector of the

Question:

integers 1 through 5? Select all correct

Answer:

s. 1 - x = linspace(1, 5, 5)'; 2 - x = [1; 2; 3; 4; 5]; 3 - x = [1: 1: 5];

4 - x = [1 2 3 4 5]';

Question:

5 - x = [1, 2, 3, 4, 5];

Answer:

Which of the following are NOT correct uses of MATLAB's built-in functions to do the calculation indicated. Select all that are incorrect. 1 - >>x = sind(30) to calculate the sine of 30 degrees 2 - >>x = sin(30) to calculate the sine of 30 degrees 3 - >>x = sin(30*pi/180) to calculate the sine of 30 degrees 4 - >>y = e^5 to calculate e raised to the power 5 5 - >>y = exp(5) to calculate e raised to the power 5 6 - >>z = ln(8) to calculate the natural log of 8 7 - >>z = log(8) to calculate the natural log of 8

Question:

8 - >>y = exp^5 to calculate e raised to the power 5

Answer:

Question:

In any least-squares curve fit..

Answer:

the fit coefficients are determined by minimizing the squared Euclidean norm of the residuals in the model predictions of the data. Model coefficients in a nonlinear equation of the form y= a1xe^(a2x^2)

Answer:

J_11 = -

J_12 = -

J_21 = -

J_22 = 1

Which of the following are statistics that indicate the quality of a curve fit? (Select all that apply) 1 - Mean of the data 2 - Euclidean norm of the residuals with respect to the model 3 - Standard deviation 4 - Standard error of the estimate 5 - Curve fit coefficients

Question:

6 - Coefficient of determination

Answer:

Question:

The coefficient of determination (r2) for a "good" fit will be

Answer:

Close to but not exceeding 1 In the general linear least squares formulation, the _________ functions can be any function of the independent variable(s), but can not

Question:

include the fit coefficients.

Answer:

Basis You have performed a curve fit to a data set using nonlinear

regression. The standard error of the curve fit is 0.5. Which of the

Question:

following statements is(are) accurate?

Answer:

We can expect the model to predict the data to within +/- 1.0 approximately 95% of the time. We can expect the model to predict the data to within +/- 0. approximately 68% of the time. The Jacobian matrix can be calculated using a finite difference approach in cases where derivation of the analytical partial derivatives is tedious. Which of the following statements is/are true about this

Question:

approach?

Answer:

  • The approach does not introduce error into the method because the derivatives in the Jacobian are only used to inform the guess for the next iteration.
  • The accuracy of the Newton-Raphson method is ultimately determined by the stopping criterion regardless of whether the derivatives are exact or approximated.
  • The approach uses perturbation of one of the variables by a small factor (e.g. 1e-6*xi) to approximate the partial derivatives with finite difference approximations. The equation for the standard error must be modified depending on the number of coefficients in the mathematical model that is being fit to the data.

Question:

T/F

1 bit for the sign, 8 bits for the exponent, and 23 bits for the mantissa. What is the machine epsilon in single precision (Enter the mantissa to

Question:

four decimal places and an integer for the exponent)?

Answer:

1.1921 x 10^(-7) The computational cost of the Gauss elimination algorithm is concentrated in the ________________ step and is proportional to the

Question:

cube of the size (n) of the n x n system of equations.

Answer:

forward elimination For a system of linear equations, the Gauss-Seidel method should converge faster than the Jacobi method because the Gauss-Seidel method takes advantage of the latest information as each iteration of the solution vector is calculated.

Question:

T/F

Answer:

True Compute the Euclidean norm of the following matrix (round to four decimal places): 2 -1 3 1 5 -

Question:

Answer:

The Gauss-Seidel method is guaranteed to converge if the system is

Question:

_____________________.

Answer:

diagonally dominant A numerical algorithm is used to solve the following system of equations: 3(x1) - 2(x2) = 1 (x1) - 4(x2) = - The numerical results are x1 = 0.997 and x2 = 1.002. The absolute values of the residuals associated with this numerical solution are (to

Question:

four decimal places):

Answer:

e1 = 0. e2 = 0. LU factorization can significantly reduce the computational cost of

Question:

solving linear systems when _________________________.

Answer:

the same Reorder the equations below so that the coefficient matrix is diagonally dominant 1 - 3a + 9b -3c + d = 20 2 - 4a - 3b + 12c +2d = 10 3 - 4a + b + 2c + 10d = 8

Question:

4 - 12a + 6b + 4c - 1d = -

Answer:

Partial pivoting is commonly used along with Gauss elimination to

Question:

_____________________.

Answer:

  • rearrange the equations so the largest coefficients in each column are on the diagonal
  • avoid division by zero problems
  • minimize round off error MATLAB's LU function may use partial pivoting depending on the input. The new order of rows is stored in the ____________________

Question:

matrix that is third in the output list from LU.

Answer:

permutation In general, open methods such as Newton-Raphson and the Secant Method converge on the root ________________ than bracketing

Question:

methods such as bisection.

Answer:

in less iterations In general, open methods such as Newton-Raphson and the Secant Method are ____________________ to fail (diverge) compared to

Question:

bracketing methods such as Bisection

Answer:

more likely Which of the following methods are used in the fzero function. Select

Question:

all that apply.

Answer:

  • Inverse quadratic interpolation
  • Secant method
  • Bisection Below are some MATLAB commands for working with polynomials. Match each function with the correct description of what it does.
  • polyval(a, x)
  • roots(a)
  • a = [2 0 3 4];

Question:

  • poly(a)

Answer: