Question: In this assignment, you will create a toolbox of matrix and vector operations that are often used in engineering. Creating a library or module is

 In this assignment, you will create a "toolbox" of matrix and

In this assignment, you will create a "toolbox" of matrix and vector operations that are often used in engineering. Creating a library or module is optional (i.e., you can implement this assignment in one or two files). Your program must have the following features - Ask the user to choose an operation: 1. Calculate the determinant of a square matrix 2. Solve a system of n equations for n unknowns 3. Calculate the dot product of two vectors in 3D Cartesian (x-y-z) space. 4. Calculate the cross product of two vectors in 3D Cartesian space. -If the user chooses option 1, ask for the size m of the matrix, then ask for the elements row-by-row. Output the result as a single real number. - If the user chooses option 2, ask for the number of equations or variables n. Then ask for the coefficients of each equation. Finally, ask for the constants. Output the solution as a list or 1D array of real numbers. - If the user chooses option 3, ask for the x, y, and z components of each vector. Output the result as a single real number. - If the user chooses option 4, ask for the x, y, and 2 components of each vector. Output the result as a vector with x, y, and 2 components. Note: The latest version of the Numerical Python (numpy) package has a bug that prevents a program from running more than once. To get around this in Python Anywhere, close the console (Control + D) after running the program each time

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!