Reference no: EM133636481
TRANSPORTATION PROBLEM
OBJECTIVES
Transportation problem works in a way of minimizing the cost function.
The cost function is the amount of money spent to the logistics provider for transporting the commodities from production or supplier place to the demand place.
It includes the distance between the two locations, the path followed, mode of transport, the number of units that are transported, the speed of transport, etc.
To transport the commodities with minimum transportation cost without any compromise in supply and demand
sum of matrix form
Create a 3x3 matrix A with elements 1 2 3 in the first row, 4 5 6 in the second row, and 7 8 9 in the third row. Create a 3x3 matrix B with elements 10 11 12 in the first row,13 14 15 in the second row, and 16 17 18 in the third row.
Compute the sum of matrices A and B.
product of matrix form
Create a 3x3 matrix A with elements 1 2 3 in the first row, 4 5 6 in the second row, and 7 8 9 in the third row.Create a 3x3 matrix B with elements 10 11 12 in the first row,13 14 15 in the second row, and 16 17 18 in the third row.
Compute the product of matrices A and B.
transpose of matrix form
Create a 3x3 matrix A with elements 1 2 3 in the first row, 4 5 6 in the second row:
Compute the transpose of matrix A.
inverse of matrix form
Create a 3x3 matrix A with elements 1 2 3 in the first row, 4 5 6 in the second row:
Compute the inverse of matrix A.
determinant of matrix form
Create a 3x3 matrix A with elements 1 2 3 in the first row, 4 5 6 in the second row, and 7 8 9 in the third row.
Compute the determinant of matrix A.
trace of matrix form
Create a 3x3 matrix A with elements 1 2 3 in the first row, 4 5 6 in the second row, and 7 8 9 in the third row.
Compute the trace of matrix A
Eigenvalues and Eigenvectors of matrix form
Create a 3x3 matrix B with elements 10 11 12 in the first row,13 14 15 in the second row, and 16 17 18 in the third row.
Eigenvalues and eigenvectors of B
symbolic mathematics computations in matlab
Write a MATLAB script that performs the following symbolic mathematics com- putations:
- Define the symbolic variables x and y.
symbolic expression in MATLAB
Define the symbolic expression f (x, y) = (x2 + y2)/(x ∗ y).
simplify the expression in MATLAB
Simplify the expression f (x, y) = (x2 + y2)/(x ∗ y) using the simplify function.
partial derivatives in MATLAB
Compute the partial derivative of f (x, y) with respect to x using the diff func- tion.
Compute the partial derivative of f (x,y) with respect to y using the diff function.
integration of the function in MATLAB
Compute the indefinite integral of f (x, y) with respect to x using the int function.
Compute the definite integral of f (x, y) with respect to y over the interval [0, 1] using the int function.
limit of the function in MATLAB
Compute the limit of f(x,y) as x approaches infinity using the limit function.
PYTHON PROJECT
simple calculator in python
In this project, you will create a simple calculator program thatallows the user to perform basic arithmetic operations (addition,subtraction,multiplication, and division) on two numbers. Theprogram will take the two numbers and operation as input fromthe user and display the result.
To complete this project, you can follow these steps:
Write a function that takes two numbers and an operation as input and returns the result of the operation.
Write a main program that prompts the user to enter two numbers and an operation, calls the function to perform the operation, and displays the result.