Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Add a cell to create a function and name it my _ function _ firstname, where firstname is your first name. Let the function return

Add a cell to create a function and name it my_function_firstname, where firstname is your first name.
Let the function return an integer value stored in one byte i.e.int8 of (4x)*(3y). Where x is the number of rows and y is the number of columns.
Use np.fromfunction() to generate three elements each are two by six using the my_fuction_firstname.
Inspect the code under this section copy it, add a cell to extract values 16,17,18
Inspect the code under this section copy it, then add a cell to iterate over c and print the Boolean values for items equivalent to zeros.
Inspect the code under this section copy it, then add a cell to create a variable name it q5_firstname where firstname is your firstname and vertically stack q1 and q2 and print the output.
Inspect the code under this section copy it, then add a cell to create a variable name it q8_firstname where firstname is your firstname , concatenate q1 and q3 and print the results.
Inspect the code under this section copy it, then add a cell and create a variable named t_firstname where firstname is your name, let the variable hold any ndaray size 2 by 7 with zero values, print the result then transpose and print the result.
Inspect the code under this section copy it, then add a cell to create 2 ndarrays name the first a1 and the second a2. Both arrays should contain numbers in the range 0 to 7, inclusive . Print a1 and a2. Reshape a1 to a 2 by 4. Reshape a2 to a 4 by 2. Create a new variable a3_first name where firstname is your first name which holds the dot product of a1 and a2 name it a3 and print the output of a3_firstname, then the shape of a3_first name.
Add a cell to create a new 4 by 4 ndaray with values between 0 and 15, name the variable that holds the array your first name, print the array and the inverse of the array.
Add a cell to create a 4 by 4 identity array.
Add a cell to create a 3 by 3 matrix with values generated randomly then printout the determinant of the matrix.
Add a cell to create a 4 by 4 matrix with values generated randomly, assign the matrix to a variable named e_firstname. Printout the Eigenvalue and eigenvectors of the matrix.
Add a cell to solve the following linear equations:
2x+4y+z =12
3x+8y+2z =16
X+2y+3z =3
Check the results using the allcolse method.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions