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
what are some questions about simple machines that don't make me sound like i didn't pay attention in the lesson?
Margaret [11]

Answer:

what are simple machines?

Explanation:

it is 2020 let's be honest all

8 0
3 years ago
What is the next measurement after 2' -6" on the architect's scale?
Diano4ka-milaya [45]

Answer: I am not for sure

Explanation:

6 0
3 years ago
If two statements are inconsistent with each other, at least one of them must be false. a)-True b)-False
olchik [2.2K]

Answer:

a)- True

Explanation:

If two statements are inconsistent with each other it means that they are not telling the same, if they are not telling the same it means that only one of them COULD be true, but there is a third option where the two statements are wrong and non statement is telling the true...so:

If we have two statements inconsistent with each other, AT LEAST one of the statements is false.

7 0
3 years ago
Which option demonstrates when most vehicles lose their efficiency?
guapka [62]

Hey there ..

I think the answer is as they put brake ..

I am not sure .. just check the image also provided above .. ..

If u think this helped u ..plz mark me as brainliest ..

And follow me

6 0
3 years ago
Read 2 more answers
Fluid Dynamics: How do I find gauge pressure of an air current at various points around a cylinder?A freestream air current of v
DaniilM [7]

Answer:

The answer is as given in the explanation.

Explanation:

The 1st thing to notice is the assumptions required. Thus as the diameter of the cylinder and the wind tunnel are given such that the difference is of the orders of the magnitude thus the assumptions as given below are validated.

  1. Flow is entirely laminar, there's no boundary layer release.
  2. Flow is streamlined, ie, it follows the geometrical path imposed by the curvature.

By D'alembert's paradox, "The net pressure drag exerted on a circular cylinder that moves in an inviscid fluid of large extent is identically zero".Just in the surface of the cylinder, the velocity profile can be given in the next equation:

V=2Usin\theta

And the pressure P on the surface of cylinder is given by Bernoulli's equation along the streamline through that point:

P=P_{_{\infty }}+\frac{1}{2}\rho U^{2}(1-4sin^{2}\Theta ))

where P_∞ is  Pressure at stagnation point, U is the velocity given, ρ is the density of the fluid (in this case air) and θ is the angle measured from the center of cylinder to the adjacent point where your pressure point will be determine.

7 0
3 years ago
Other questions:
  • Subcooled liquid water flows adiabatically in a constant diameter pipe past a throttling valve that is partially open. The liqui
    13·1 answer
  • Exceeding critical mach may result in the onset of compressibility effects such as:______.
    6·1 answer
  • A 0.25in diameter steel rod BC is securely attached between two identical 1in diameter copper rods (AB and CD). Find the torque
    11·1 answer
  • Anne works with other engineers studying physical processes that involve the flow of particles. Which field of engineering would
    14·1 answer
  • There are two questions about SolidWorks.
    9·1 answer
  • Annealing is a process by which steel is reheated and then cooled to make it less brittle. Consider the reheat stage for a 100-m
    14·1 answer
  • Consider tests of an unswept wing that spans the wind tunnel and whose airfoil section is NACA 23012. Since the wing model spans
    13·1 answer
  • Which technical planning document defines support tasks?
    7·1 answer
  • What is a beam on a bridge? what does it do?
    6·1 answer
  • The proposed grading at a project site will consist of 25,100 m3 of cut and 23,300 m3 of fill and will be a balanced earthwork j
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!