Preliminary Quiz¶
For Penn State student, access quiz here
import ipywidgets as widgets
Queation 1¶
Consider the feasible region given by the following inequalities. whose boundary lines are graphed above.
Which ONE of the following labels best indicate the feasible region described above?
Show answer
Answer: III
Question 2¶
Let
where \(t\) is a scalar variable. Find \(g^{'}(0)\) at \(x=(1,1,1)\)
Show answer
Answer:
Question 3¶
Determine the global maximum and global minimum of the function
on the interval \([-2,3]\)
Show answer
Answer:
Global maximum is 5; global minimum is -15.
Question 4¶
Find the global minimizer and the global minimum value of the function
That is, determine the point \((x_0,y_0)\) which yields the global minimum value,
Show answer
Answer: \(x_0 = 3\), \(y_0 = 1\)
\(f_{min} = 1\)
Problem 5¶
Which of the following matrices has an inverse?
Show answer
Answer:
Question 6¶
Let
Compute the eigenvalues of \(A\)
Show answer
Answer:
1,0,3
Question 7¶
Let
and \(A=aa^T\)
Find the eigenvalues and corresponding eigenvectors of \(A\)
Write out solution.
Show answer
Question 9¶
When writing in python, what will be the output after the following statements?
m = 92
n = 35
print(m > n)
True
Show answer
True
Question 10¶
NumPy is a library for the Python programming language which provides support for large, multi-dimensional arrays and matrices, along with a large collection of high-level mathematical functions to operate on these arrays. For example,
x = np.array([1, 2, 3])
will set x to a vector array with components (1, 2, 3). To utilize the above array function as listed, what do you need to do prior to using it?
Show answer
import numpy as np