Question

In: Mechanical Engineering

Suppose that x = -7 - 5i and y = 4 + 3i. Use MATLAB to compute

Suppose that x = -7 - 5i and y = 4 + 3i. Use MATLAB to compute

a. x + y

b. xy

c. x/y

 

 

Solutions

Expert Solution

(a)

Write a MATLAB code to compute the value of x + y.

>> x = -7-5i;

>> y = 4+3i;

>> x+y

 

MATLAB output:

ans =

-3.0000 - 2.0000i

 

Therefore, the value of x + y is -3 – j2.

 

(b)

Write a MATLAB code to compute the value of xy.

>> x = -7-5i;

>> y = 4+3i;

>> x*y

 

MATLAB output:

ans =

-13.0000 -41.0000i

 

Therefore, the value of xy is -13 – j41.

 

(c)

Write a MATLAB code to compute the value of x/y.

>> x = -7-5i;

>> y = 4+3i;

>> x/y

 

MATLAB output:

ans =

-1.7200 + 0.0400i

 

Therefore, the value of x/y is – 1.72 + j0.04.


Therefore, the value of x/y is – 1.72 + j0.04.

Related Solutions

Compute the length and absolute value of the following vectors: a. x = [2, 4, 7] b. y = [2, -4, 7] c. z = [5 + 3i, -3 + 4i, 2 - 7i]
Compute the length and absolute value of the following vectors:a. x = [2, 4, 7]b. y = [2, -4, 7]c. z = [5 + 3i, -3 + 4i, 2 - 7i]
Use MATLAB to solve graphically the planar system of linear equations x +4 y = −4...
Use MATLAB to solve graphically the planar system of linear equations x +4 y = −4 4x +3 y =4 to an accuracy of two decimal points. Hint: The MATLAB command zoom on allows us to view the plot in a window whose axes are one-half those of original. Each time you click with the mouse on a point, the axes’ limits are halved and centered at the designated point. Coupling zoom on with grid on allows you to determine...
1) a) From the set {-8, -2/3, 5i, √(-9), √2, 0, 3+3i, -2.35, 7} i) List...
1) a) From the set {-8, -2/3, 5i, √(-9), √2, 0, 3+3i, -2.35, 7} i) List the set of          Natural Numbers ii) List the set of          Integers iii) List of the set of    Rational Numbers vi) List the set of         Real Numbers                                                b) i) -30 ÷ -6 - (-12 + 8) – 4 x 3 =                           ii) 10(-2) - (-6)4                           (-10) – 6(-3) =       (4, 4 marks) 2) a) 12/5 x...
using matlab, compute and plot y [n] = x [n]* h [n], where a. x [n]...
using matlab, compute and plot y [n] = x [n]* h [n], where a. x [n] = h [n] = a^n (0 <=n <=40) & a = 0.5 b. x [n] = cos [n]; h [n] = u [n]; n = 0:4:360 c. x [n] = sin [n] ; h [n] = a^n; n:4:360; a = 0.9
For the differential equation (2 -x^4)y" + (2*x -4)y' + (2*x^2)y=0. Compute the recursion formula for...
For the differential equation (2 -x^4)y" + (2*x -4)y' + (2*x^2)y=0. Compute the recursion formula for the coefficients of the power series solution centered at x(0)=0 and use it to compute the first three nonzero terms of the solution with y(0)= 12 , y'(0) =0
use a matlab built-in function to numerically solve: dy/dx= -x^2+((x^3*e^-y)/4) for 1<=x<=5 with y(1)=1 plot the...
use a matlab built-in function to numerically solve: dy/dx= -x^2+((x^3*e^-y)/4) for 1<=x<=5 with y(1)=1 plot the solution
y'=y-x^2 ; y(1)= -4 Write a MATLAB program that makes two plots of the solution to...
y'=y-x^2 ; y(1)= -4 Write a MATLAB program that makes two plots of the solution to the equation using the following values. Suggest you use nested loops instead of two different loops. Be sure to label your plots. a. x0 = 1.0, step size h = .2, number of steps n = 20. b. x0 = 1.0, step size h = .05, number of steps n = 80.
Suppose X and Y are independent random variables with X = 2:8 and Y = 3:7....
Suppose X and Y are independent random variables with X = 2:8 and Y = 3:7. Find X+Y , the standard deviation of X + Y .
solve using MATLAB. Title: Numerical differentiations. Use Richardson extrapolation to estimate the first derivative of y = cos x at x = π/4...
solve using MATLAB. Title: Numerical differentiations. Use Richardson extrapolation to estimate the first derivative of y = cos x at x = π/4 using step sizes of h1 = π/3 and h2 = π/6. Employ centered differences of O(h2) for the initial estimates. solve using MATLAB.
Suppose the joint p.d.f of X and Y is f(x,y)= (6/7)(3x+y) if o<y<x<1, and 0 otherwise....
Suppose the joint p.d.f of X and Y is f(x,y)= (6/7)(3x+y) if o<y<x<1, and 0 otherwise. a. Find P(Y<(1/2)) b. Find Cov(X,Y)
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT