1 / 4100%
1
ENGR133 - Problem Set 01
Authored by: Aaron Mathew
Created on 02/07/2023
Problem 1.2
Initialize Variables
x = 2
y = 5
Find part A
A = -13.3333
Find part B
B = 0.6000
Find part C
C = 15
Find part D
D = 1.0323
Problem 1.12
Initialize Variables
x = -7.0000 - 5.0000i
y = 4+3i % value of Y
y=5 % value of Y
clc,clear,close all % clears previous work
x=2 % value of X
A = y*(x^3)/(x-y) % Equation for Part A
B = (3*x)/(2*y) % Equation for Part B
C = (3/2)*x*y % Equation for Part C
D = x^5/((x^5)-1) % Equation for part D
clc,clear,close all % clears previous work
x = -7-5i % value of X
2
y = 4.0000 + 3.0000i
Find the sum
sum = -3.0000 - 2.0000i
Find the product
Product = -13.0000 -41.0000i
Find the Ratio
Ratio = -1.7200 + 0.0400i
Problem 1.16
Initialize Variables
k1 = 258.1500
v1 = 28500
K2 = 304.1500
Find Volume for July
V2 = 3.3578e+04
Problem 1.26
Initialize Variables
r = 1×4
60 20 -15 30
v1 = 28500 % Initial Volume, Ft^3
sum = x+y % Addition of X and Y
Product = x*y % Multiplication of X and Y
Ratio = x/y % Division of X and Y
clc,clear,close all % clears previous work
k1 = 258.15 % Initial Tempurature, K
K2 = 304.15 % Final Tempurature, K
V2 = (v1*K2)/k1 % Equation to find Final Volume, Ft^3
clc,clear,close all % clears previous work
r = [60,20,-15,30] % Polynomial Numbers
3
Find roots
root = 3×1 complex
-1.0381 + 0.0000i
0.3524 + 0.5979i
0.3524 - 0.5979i
Problem 1.28
Initialize Variables
Generate Plot
Create proper plot
root = roots(r) % Roots of the polynomial
clc,clear,close all % clears previous work
x = 0:0.01:2; % Values for X
y = 3*log((70*x)+1); % Values for Y
z = 4*cos(7*x); % Values for Z
plot(x,y,x,z,"m--") % Plotting, X,Y and Z
title("Problem Set 1.28") % Renames the Title
xlabel("Distance , m") % Renames the X-Axis
ylabel("Speed, MPH") % Renames the Y-Axis
grid minor % Applies grid
legend("u = 3*log((70*j)+1)","v = 4*cos(7*j)","Location","Best") % Applies Legend
to graph
4
Students also viewed