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
The demand schedules for Jones, Smith, and other buyers are shown in the table below:
Solnce55 [7]

The demand curve is the graphical representation of the relationship between the price of a good and the quantity demanded for a given period of time.

<h3>What is a demand schedule?</h3>

A demand schedule is a table which shows the quantity demanded of a good or service at different price levels.

A demand schedule can be graphed as a continuous demand curve on a chart where the Y-axis represents the price and the X-axis represents quantity.

Here, a typical representation, the price will appear on the left vertical axis, the quantity demanded on the horizontal axis.

Note that the complete information wasn't found and an overview was given.

Learn more about demand on:

brainly.com/question/1245771

#SPJ1

4 0
2 years ago
Sea X una variable aleatoria con funci´on de densidad
kramer

Answer:

Explanation:0

3 0
3 years ago
The hypotenuse of a 45° right triangle is
wlad13 [49]
75+69 and divide by 54
4 0
3 years ago
For an Na+—Cl- ion pair, attractive and repulsive energies EA and ER, respectively, depend on the distance between the ions r, a
Lunna [17]

Answer:

Explanation:

\text{The curve of the plot} \mathbf{E_A,E_R,  \ and \ E_N} \text{can be seen in the attached diagram below}

\text{From the plot}, \mathbf{r_o = 0.2 4nm \ and  \ E_o =-5.3 eV}

\mathbf{We  \ knew  \ that: E_N = E_A + E_R}

\mathtt{GIven \ E_A = \dfrac{-1.436}{r}\ \ \ , E_R = \dfrac{7.32 \times 10^{-6}}{r^n}  \ \ and  \ \ n=8 }

\mathtt{Then; E_N = -\dfrac{-1.436}{r}+ \dfrac{7.32\times 10^{-6}}{r^8}}

\mathtt{Also; r_o = \Big( \dfrac{A}{nB}  \Big)^{\dfrac{1}{1-n}}} \\ \\ \mathtt{ r_o = \Big( \dfrac{1.986}{8 \times 7.32\times 10^{-6}}  \Big)^{\dfrac{1}{1-8}}} \\ \\ \mathbf{r_o = 0.236 nm}

E_o = \dfrac{-1.436}{\Big[\dfrac{1.436}{8(732\times 10^{-6})}\Big]^{\dfrac{1}{1-8}}} + \dfrac{7.32 \times 10^{-6}}{\Big[ \dfrac{1.436}{8\times7.32 \times 10^{-6} }  \Big]^{\dfrac{8}{1-8}}}

\mathbf{E_o = -5.32 \ eV}

8 0
3 years ago
Please answer quickly!!!
Olenka [21]

Answer:

c

Explanation:

nice profile picture by the way

4 0
3 years ago
Other questions:
  • 1. What is the linear distance traveled in one revolution of a 9 in diameter wheel?
    14·1 answer
  • Seawater containing 3.50 wt% salt passes through a series of 11 evaporators. Roughly equal quantities of water are vaporized in
    5·1 answer
  • What is the average linear (seepage) velocity of water in an aquifer with a hydraulic conductivity of 6.9 x 10-4 m/s and porosit
    13·1 answer
  • You are given a noninverting 741 op-amp with a dc-gain of 23.6 dB. The input signal to this amplifier is;Vin(t) = (0.18)∙cos(2π(
    5·1 answer
  • Communication "works" to the degree that a wide variety of information is completely and thoroughly shared among the parties, an
    13·1 answer
  • How many ase certifications are there for automotive technicians?
    7·1 answer
  • While examining the color of an engine's coolant: Technician A says that because it is orange, the cooling system should be flus
    8·1 answer
  • State two reasons why industrial files must be always be used fitted upon the individual
    8·1 answer
  • While discussing possible causes of black smoke from the exhaust of an older heavy-duty Diesel engine, technician a says that bl
    10·1 answer
  • Consider the function f(n) = n
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!