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
Biblical studies of john​
nevsk [136]

Answer:

<h2>the answer of sols brother is correct</h2><h3>hope it helps you have a good day</h3><h2 />

5 0
3 years ago
A large retirement village has a total retail employment of 120. All 1600 of the households in this village consist of two nonwo
polet [3.4K]

Answer:

See explaination

Explanation:

Please kindly check attachment for the step by step solution of the given problem.

5 0
3 years ago
The total floor area of a building, including below-grade space but excluding unenclosed areas, measured from the exterior of th
alex41 [277]

Answer:

Gross building area

Explanation:

The Gross building area refers to the entire area of a building covering all the floors. The measurement is expressed in square feet. The Gross building area also includes basements, penthouses, and mezzanines. It is calculated by estimating the exterior dimension of the building. Storage rooms, laundries, staircases are also a part of the gross building area.

6 0
3 years ago
The melting point of Pb (lead) is 327°C, is the processing at 20°C hot working or cold working?
bonufazy [111]

Answer:

Explained

Explanation:

Cold working: It is plastic deformation of material at temperature below   recrystallization temperature. whereas hot working is deforming material above the recrystallization temperature.

Given melting point temp of lead is 327° C and lead recrystallizes at about

0.3 to 0.5 times melting temperature which will be higher that 20°C. Hence we can conclude that at 20°C lead will under go cold working only.

6 0
3 years ago
You are stopped at a red traffic light and are first in line at the intersection. When the traffic light changes to green, you s
Ostrovityanka [42]

Answer:

Go, but only if the intersection is clear.

Explanation:

Traffic at intersection can be complicated at times. If the green light comes on after a red light, you have the right of way to go, but you should be careful to only go when the intersection is clear to avoid an accident. Once using the road, a good driver should be conscious of the other road users, as accidents might happen from you claiming your-right of-way

8 0
3 years ago
Other questions:
  • Yield and tensile strengths and modulus of elasticity . with increasing temperature. (increase/decrease/independent)
    11·1 answer
  • The two boxcars A and B have a weight of 20000lb and 30000lb respectively. If they coast freely down the incline when the brakes
    11·1 answer
  • A structural component in the shape of a flat plate 29.6 mm thick is to be fabricated from a metal alloy for which the yield str
    11·1 answer
  • A closed system of mass 10 kg undergoes a process during which there is energy transfer by work from the system of 0.147 kJ per
    9·2 answers
  • 1. Given: R= 25 , E = 100 V<br> Solve for I
    5·1 answer
  • I NEED HELP ASAP WILL AWARD BRAINLIEST
    8·2 answers
  • Please what is dif<br>ference between building technology and building engineering.​
    14·2 answers
  • At a certain location, wind is blowing steadily at 7 m/s. Determine the mechanical energy of air per unit mass and the power gen
    14·1 answer
  • How do Geothermal plowerplants relate to engineering?
    11·1 answer
  • The inspector should inspect insulation in unfinished spaces, including attics, _____ and foundation areas.
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!