1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
OLEGan [10]
3 years ago
8

Plot the following trig functions using subplots, choosing an appropriate layout for the number of functions displayed. The subp

lots should include a title which is the equation displayed. The independent variable (angle) should vary from 0 to 360 degrees and the plots should use a solid red line.

Engineering
1 answer:
Maksim231197 [3]3 years ago
3 0

The question is incomplete! The complete question along with Matlab code and explanation is provided below.

Question

Plot the following trig functions using subplots, choosing an appropriate layout for the number of functions displayed. The subplots should include a title which is the equation displayed. The independent variable (angle) should vary from 0 to 360 degrees and the plots should use a solid red line.

1. cos(u - 45)

2. 3cos(2u) - 2

3. sin(3u)

4. -2cos(u)

Matlab Code with Explanation:

u=[0:0.01:2*pi] % independent variable represents 0 to 360 degrees in steps of 0.01

y1=cos(2*pi*u-45); % function 1

y2=3*cos(2*pi*2*u)-2;  % function 2

y3=sin(2*pi*3*u);  % function 3

y4=-2*cos(2*pi*u);  % function 4

subplot(4,1,1) % 4 rows, 1 column and at position 1

plot(u,y1,'r');  % this function plots y w.r.t u and 'r' is for red color

grid on   % turns on grids

xlabel('u') % label of x-axis

ylabel('y1')  % label of x-axis

title('y1=cos(2*pi*u-45)') % title of the plot

ylim([-3 3]) % limits of y-axis

xlim([0 2*pi]) % limits of x-axis

% repeat the same procedure for the remaining 3 functions

subplot(4,1,2)

plot(u,y2,'r');  

grid on  

xlabel('u')  

ylabel('y2')  

title('y2=3*cos(2*pi*2*u)-2')  

ylim([-6 3])

xlim([0 2*pi])

subplot(4,1,3)  

plot(u,y3,'r');

grid on  

xlabel('u')  

ylabel('y3')  

title('y3=sin(2*pi*3*u)')  

ylim([-3 3])  

xlim([0 2*pi])

subplot(4,1,4)  

plot(u,y4,'r');  

grid on  

xlabel('u')

ylabel('y4')  

title('y4=-2*cos(2*pi*u)')  

ylim([-3 3])

xlim([0 2*pi])

Output Results:

The first plot shows a cosine wave with a phase shift of 45°

The second plot shows that the amplitude of the cosine wave is increased and the wave is shifted below zero level into the negative y-axis because of -2 also there is a increase in frequency since it is multiplied by 2.

The third plot shows that the frequency of the sine wave is increased since it is multiplied by 3.

The fourth plot shows a cosine wave which is multiplied by -2 and starts from the negative y-axis.

You might be interested in
What engine does the Lexus is300 have?
Nikitich [7]

Answer:

2jz - ge

Explanation:

it has the non turbo 2jz. its the engine the supra has

6 0
3 years ago
Water flows steadily through the pipe as shown below, such that the pressure at section (1) and at section (2) are 300 kPa and 1
steposvetlana [31]

Answer:

The velocity at section is approximately 42.2 m/s

Explanation:

For the water flowing through the pipe, we have;

The pressure at section (1), P₁ = 300 kPa

The pressure at section (2), P₂ = 100 kPa

The diameter at section (1), D₁ = 0.1 m

The height of section (1) above section (2), D₂ = 50 m

The velocity at section (1), v₁ = 20 m/s

Let 'v₂' represent the velocity at section (2)

According to Bernoulli's equation, we have;

z_1 + \dfrac{P_1}{\rho \cdot g} + \dfrac{v^2_1}{2 \cdot g} = z_2 + \dfrac{P_2}{\rho \cdot g} + \dfrac{v^2_2}{2 \cdot g}

Where;

ρ = The density of water = 997 kg/m³

g = The acceleration due to gravity = 9.8 m/s²

z₁ = 50 m

z₂ = The reference = 0 m

By plugging in the values, we have;

50 \, m + \dfrac{300 \ kPa}{997 \, kg/m^3 \times 9.8 \, m/s^2} + \dfrac{(20 \, m/s)^2}{2 \times 9.8 \, m/s^2} = \dfrac{100 \ kPa}{997 \, kg/m^3 \times 9.8 \, m/s^2} + \dfrac{v_2^2}{2 \times 9.8 \, m/s^2}50 m + 30.704358 m + 20.4081633 m = 10.234786 m + \dfrac{v_2^2}{2 \times 9.8 \, m/s^2}

50 m + 30.704358 m + 20.4081633 m - 10.234786 m = \dfrac{v_2^2}{2 \times 9.8 \, m/s^2}

90.8777353 m = \dfrac{v_2^2}{2 \times 9.8 \, m/s^2}

v₂² = 2 × 9.8 m/s² × 90.8777353 m

v₂² = 1,781.20361 m²/s²

v₂ = √(1,781.20361 m²/s²) ≈ 42.204308 m/s

The velocity at section (2), v₂ ≈ 42.2 m/s

3 0
2 years ago
In C++ the declaration of floating point variables starts with the type name float or double, followed by the name of the variab
zubka84 [21]

Answer:

The given grammar is :

S = T V ;

V = C X

X = , V | ε

T = float | double

C = z | w

1.

Nullable variables are the variables which generate ε ( epsilon ) after one or more steps.

From the given grammar,

Nullable variable is X as it generates ε ( epsilon ) in the production rule : X -> ε.

No other variables generate variable X or ε.

So, only variable X is nullable.

2.

First of nullable variable X is First (X ) = , and ε (epsilon).

L.H.S.

The first of other varibles are :

First (S) = {float, double }

First (T) = {float, double }

First (V) = {z, w}

First (C) = {z, w}

R.H.S.

First (T V ; ) = {float, double }

First ( C X ) = {z, w}

First (, V) = ,

First ( ε ) = ε

First (float) = float

First (double) = double

First (z) = z

First (w) = w

3.

Follow of nullable variable X is Follow (V).

Follow (S) = $

Follow (T) = {z, w}

Follow (V) = ;

Follow (X) = Follow (V) = ;

Follow (C) = , and ;

Explanation:

4 0
3 years ago
A 50-kN hydraulic press performs pressing and clamping actions. The clamping cylinder force is 4 kN. The pressing cylinder strok
galben [10]

Answer:

The attached figure shows the hydraulic circuit using one sequence valve to control two simultaneous operations performed in proper sequence in one direction only. In the other direction, both the operations are simultaneous.

When we keep the 4/2 DCV in crossed arrow position, oil under pressure is supplied to the inlet port of the sequence valve. It directly flows to Head end port-1. Hence Cylinder 'C1' extends first.

By the end of the extension of cylinder 'C1', pressure in the line increases and hence poppet of sequence valve is lifted off from its seat and allows oil to flow to port-2 and hence, Cylinder 'C2 extends completing the pressing operation.

In the straight-arrow position of 4/2 DCV the oil under pressure reaches the rod end of both the cylinders C1 and C2 simultaneously through port-3. This causes both the cylinders to retract simultaneously.

Also, a Flow control valve is provided tho control the velocity of clamping

Explanation:

find attached the figure

4 0
3 years ago
A 600 MW power plant has an efficiency of 36 percent with 15
ololo11 [35]

Answer:

401.3 kg/s

Explanation:

The power plant has an efficiency of 36%. This means 64% of the heat form the source (q1) will become waste heat. Of the waste heat, 85% will be taken away by water (qw).

qw = 0.85 * q2

q2 = 0.64 * q1

p = 0.36 * q1

q1 = p /0.36

q2 = 0.64/0.36 * p

qw = 0.85 *0.64/0.36 * p

qw = 0.85 *0.64/0.36 * 600 = 907 MW

In evaporation water becomes vapor absorbing heat without going to the boiling point (similar to how sweating takes heat from the human body)

The latent heat for the vaporization of water is:

SLH = 2.26 MJ/kg

So, to dissipate 907 MW

G = qw * SLH = 907 / 2.26 = 401.3 kg/s

8 0
3 years ago
Read 2 more answers
Other questions:
  • The pressure in an automobile tire depends on thetemperature of the air in the tire. When the air temperature is25°C, the pressu
    11·1 answer
  • One of the basic requirements of a servomotor is that it must produce high torque at all: a)Frequencies b)-Voltages c)-Loads d)-
    14·1 answer
  • Block A has a weight of 8 lb. and block B has a weight of 6 lb. They rest on a surface for which the coefficient of kinetic fric
    8·1 answer
  • The water behind Hoover Dam in Nevada is 221 m higher than the Colorado River below it. At what rate must water pass through the
    6·1 answer
  • When a user process is interrupted or causes a processor exception, the x86 hardware switches the stack pointer to a kernel stac
    13·1 answer
  • g An analog voice signal, sampled at the rate of 8 kHz (8000 samples/second), is to be transmitted by using binary frequency shi
    12·1 answer
  • Breaks do not overheat true false ?
    6·1 answer
  • In a flow over a flat plate, the Stanton number is 0.005: What is the approximate friction factor for this flow a)- 0.01 b)- 0.0
    8·1 answer
  • What is the output of the following program fragment. Choose appropriate data-types of variables to match output.
    10·1 answer
  • Using the following data, determine the percentage retained, cumulative percentage retained, and percent passing for each sieve.
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!