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
Nadya [2.5K]
3 years ago
9

Unit for trigonometric functions is always "radian". 1. 10 points: Do NOT submit your MATLAB code for this problem (a) Given f(x

)=('-sinx-0.2, find the solutions of f(x)=0 within the interval of 0
Engineering
1 answer:
RoseWind [281]3 years ago
7 0

Answer:

Below is the required code.

Explanation:

%% Newton Raphson Method

clear all;

clc;

x0=input('Initial guess:\n');

x=x0;

f=exp(-x)-sin(x)-0.2;

g=-exp(-x)-cos(x);

ep=10;

i=0;

cc=input('Condition of convergence:\n');

while ep>=cc

i=i+1;

temp=x;

x=x-(f/g);

f=exp(-x)-sin(x)-0.2;

g=-exp(-x)-cos(x);

ep=abs(x-temp);

fprintf('x = %6f and error = %6f at iteration = %2f \n',x,ep,i);

end

fprintf('The solution x = %6f \n',x);

%% End of MATLAB Program

Command Window:

(a) First Root:

Initial guess:

1.5

Condition of convergence:

0.01

x = -1.815662 and error = 3.315662 at iteration = 1.000000

x = -0.644115 and error = 1.171547 at iteration = 2.000000

x = 0.208270 and error = 0.852385 at iteration = 3.000000

x = 0.434602 and error = 0.226332 at iteration = 4.000000

x = 0.451631 and error = 0.017029 at iteration = 5.000000

x = 0.451732 and error = 0.000101 at iteration = 6.000000

The solution x = 0.451732

>>

Second Root:

Initial guess:

3.5

Condition of convergence:

0.01

x = 3.300299 and error = 0.199701 at iteration = 1.000000

x = 3.305650 and error = 0.005351 at iteration = 2.000000

The solution x = 3.305650

>>

(b) Guess x=0.5:

Initial guess:

0.5

Condition of convergence:

0.01

x = 0.450883 and error = 0.049117 at iteration = 1.000000

x = 0.451732 and error = 0.000849 at iteration = 2.000000

The solution x = 0.451732

>>

Guess x=1.75:

Initial guess:

1.75

Condition of convergence:

0.01

x = 227.641471 and error = 225.891471 at iteration = 1.000000

x = 218.000998 and error = 9.640473 at iteration = 2.000000

x = 215.771507 and error = 2.229491 at iteration = 3.000000

x = 217.692636 and error = 1.921130 at iteration = 4.000000

x = 216.703197 and error = 0.989439 at iteration = 5.000000

x = 216.970438 and error = 0.267241 at iteration = 6.000000

x = 216.971251 and error = 0.000813 at iteration = 7.000000

The solution x = 216.971251

>>

Guess x=3.0:

Initial guess:

3

Condition of convergence:

0.01

x = 3.309861 and error = 0.309861 at iteration = 1.000000

x = 3.305651 and error = 0.004210 at iteration = 2.000000

The solution x = 3.305651

>>

Guess x=4.7:

Initial guess:

4.7

Condition of convergence:

0.01

x = -1.916100 and error = 1.051861 at iteration = 240.000000

x = -0.748896 and error = 1.167204 at iteration = 241.000000

x = 0.162730 and error = 0.911626 at iteration = 242.000000

x = 0.428332 and error = 0.265602 at iteration = 243.000000

x = 0.451545 and error = 0.023212 at iteration = 244.000000

x = 0.451732 and error = 0.000187 at iteration = 245.000000

The solution x = 0.451732

>>

Explanation:

The two solutions are x =0.451732 and 3.305651 within the range 0 < x< 5.

The initial guess x = 1.75 fails to determine the solution as it's not in the range. So the solution turns to unstable with initial guess x = 1.75.

You might be interested in
A 0.25" diameter A36 steel rivet connects two 1" wide by .25" thick 6061-T6 Al strips in a single lap shear joint. The shear str
just olya [345]

Answer:

Option B

1025 psi

Explanation:

In a single shear, the shear area is \frac {\pi d^{2}}{4}=\frac {\pi 0.25^{2}}{4}

The shear strength=0.58\sigma_y and in this case \sigma_y=36 000 psi

Shear strength=\frac {Load}{Shear area} hence making load the subject then

Load=Shear area X Shear strength

Load=\frac {\pi 0.25^{2}}{4} \times 0.58\times 36000\approx 1025 psi

3 0
3 years ago
What factors are likely to promote the formation of stress corrosion cracks?
Naddika [18.5K]

Answer:

Stress corrosion cracking

Explanation:

This occurs when susceptible materials subjected to an environment that causes cracking effect by the production of folds and tensile stress. This also depends upon the nature of the corrosive environment.

Factors like high-temperature water, along with Carbonization and chlorination, static stress, and material properties.

7 0
3 years ago
A rectangular block of material with shear modulus G= 620 MPa is fixed to rigid plates at its top and bottom surfaces. Thelower
PIT_PIT [208]

Answer:

γ_{xy} =0.01, P=248 kN

Explanation:

Given Data:

displacement = 2mm ;

height = 200mm ;

l = 400mm ;

w = 100 ;

G = 620 MPa = 620 N//mm²;    1MPa = 1N//mm²

a. Average Shear Strain:

The average shear strain can be determined by dividing the total displacement of plate by height

γ_{xy} = displacement / total height

     = 2/200 = 0.01

b. Force P on upper plate:

Now, as we know that force per unit area equals to stress

τ = P/A

Also,  τ = Gγ_{xy}

By comapring both equations, we get

P/A = Gγ_{xy}   ------------ eq(1)

First we need to calculate total area,

A = l*w = 400 * 100= 4*10^4mm²

By putting the values in equation 1, we get

P/40000 = 620 * 0.01

P = 248000 N or 2.48 *10^5 N or 248 kN

6 0
3 years ago
Is it possible to maintain a pressure of 10 kpa in a condenser that is being cooled by river water entering at 20 C.?
SIZIF [17.4K]

Answer:

Yes,If we use river water which is entering at 20⁰ C in the condenser then it is possible to maintain the pressure of 10 KPa in condenser.

Explanation:

Yes,If we use river water which is entering at 20⁰ C in the condenser then it is possible to maintain the pressure of 10 KPa in condenser.

The saturation temperature of steam is 45.81⁰ C at the pressure of 10 KPa which is higher than 20⁰C of river water. So river water at 20⁰C can be used to maintain the condenser pressure to 10 KPa.

7 0
3 years ago
In 1945, the United States tested the world’s first atomic bomb in what was called the Trinity test. Following the test, images
Zarrin [17]

Answer:

r=K A^{1/5} \rho^{-1/5} t^{2/5}

A= \frac{r^5 \rho}{t^2}

A=1.033x10^{21} ergs *\frac{Kg TNT}{4x10^{10} erg}=2.58x10^{10} Kg TNT

Explanation:

Notation

In order to do the dimensional analysis we need to take in count that we need to conditions:

a) The energy A is released in a small place

b) The shock follows a spherical pattern

We can assume that the size of the explosion r is a function of the time t, and depends of A (energy), the time (t) and the density of the air is constant \rho_{air}.

And now we can solve the dimensional problem. We assume that L is for the distance T for the time and M for the mass.

[r]=L with r representing the radius

[A]= \frac{ML^2}{T^2} A represent the energy and is defined as the mass times the velocity square, and the velocity is defined as \frac{L}{T}

[t]=T represent the time

[\rho]=\frac{M}{L^3} represent the density.

Solution to the problem 

And if we analyze the function for r we got this:

[r]=L=[A]^x [\rho]^y [t]^z

And if we replpace the formulas for each on we got:

[r]=L =(\frac{ML^2}{T^2})^x (\frac{M}{L^3})^y (T)^z

And using algebra properties we can express this like that:

[r]=L=M^{x+y} L^{2x-3y} T^{-2x+z}

And on this case we can use the exponents to solve the values of x, y and z. We have the following system.

x+y =0 , 2x-3y=1, -2x+z=0

We can solve for x like this x=-y and replacing into quation 2 we got:

2(-y)-3y = 1

-5y = 1

y= -\frac{1}{5}

And then we can solve for x and we got:

x = -y = -(-\frac{1}{5})=\frac{1}{5}

And if we solve for z we got:

z=2x =2 \frac{1}{5}=\frac{2}{5}

And now we can express the radius in terms of the dimensional analysis like this:

r=K A^{1/5} \rho^{-1/5} t^{2/5}

And K represent a constant in order to make the porportional relation and equality.

The problem says that we can assume the constant K=1.

And if we solve for the energy we got:

A^{1/5}=\frac{r}{t^{2/5} \rho^{-1/5}}

A= \frac{r^5 \rho}{t^2}

And now we can replace the values given. On this case t =0.025 s, the radius r =140 m, and the density is a constant assumed \rho =1.2 kg/m^2, and replacing we got:

A=\frac{140^5 1.2 kg/m^3}{(0.025 s)^2}=1.033x10^{14} \frac{kg m^2}{s^2}

And we can convert this into ergs we got:

A= 1.033x10^{14} \frac{kgm^2}{s^2} * \frac{1 x10^7 egrs}{1 \frac{kgm^2}{s^2}}=1.033x10^{21} ergs

And then we know that 1 g of TNT have 4x10^4 erg

And we got:

A=1.033x10^{21} ergs *\frac{Kg TNT}{4x10^{10} erg}=2.58x10^{10} Kg TNT

3 0
3 years ago
Other questions:
  • Many people use microwave ovens to cook their food. Which option is best described as an engineering endeavor related to microwa
    9·2 answers
  • What do you think are the advantages and disadvantages of isothermal constant volume high extension cycle? And how efficient do
    13·1 answer
  • Hydrogen gas (density = 1.165 kg/m^3 ) is stored at 25°C in a permeable cylindrical container which has an outer diameter of 0.2
    11·1 answer
  • Using phasors, the value of 37 sin 50t + 30 cos(50t – 45°) is _________ cos(50t+(_____°)). Please report your answer so the magn
    5·1 answer
  • Simplify the following expressions, then implement them using digital logic gates. (a) f = A + AB + AC (b) f = AB + AC + BC (c)
    5·1 answer
  • Which of the following describes a product concept?
    15·1 answer
  • I will put other link in comments
    12·1 answer
  • Help thank you &lt;3 :DDD
    13·1 answer
  • Airplanes are the only way that people can take flight.<br> A. True<br> B. False
    14·2 answers
  • On calculating which of the following quantities , does the body have an effect in simple projectile motion?​
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!