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]
4 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]4 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
Which of the following material properties varies with temperature? a)- density b)- viscosity c)- electrical resistance d)- all
Reil [10]

Answer:

(d) all of the above

Explanation:

Effect on the density of temperature: If we increase the temperature of any room then particles of the room moves and to and fro and so density is decrease

Effect on the viscosity  of temperature : viscosity is inversely proportional to the temperature if we increase the temperature viscosity decreases and if we decrease the temperature viscosity increases.

Effect on the resistance of temperature : For metals if we increase the temperature then resistance increases and for semiconductor if we increase the temperature resistance decreases

So from above discussion all the parameter depends on the temperature so option (d( will be the correct option  

6 0
3 years ago
Read the following statement.
alekssr [168]
The correct answer is A
5 0
4 years ago
Read 2 more answers
If you are sampling a 50Hz signal, what is the minimum sampling rate necessary to prevent aliasing?Why?
horsena [70]

Answer:

100Hz

Explanation:

The minimum sampling rate to prevent aliasing is at least double your sample frequency.

50*2 = 100Hz

This is called the Nyquist Sampling Rate if you wanna learn more about it.

6 0
4 years ago
Which traits are common in all four career pathways of the Information Technology field? Check all that apply.
Irina-Kira [14]
2,4,5, I think are the answers
7 0
3 years ago
Read 2 more answers
Exercise 2. Let X be a discrete random variable with the cumulative distribution function 0 x&lt;1  F(x)= 0.5 1≤x&lt;3 1 x≥
Ivahew [28]

Answer:

(1) Calculate the probability P {X ≤ 3} is 1

(2) Calculate the probability P {1 ≤ X ≤ 2} is 0.5

Explanation:

Find attached the calculation

6 0
3 years ago
Other questions:
  • A single crystal of a metal that has the BCC crystal structure is oriented such that a tensile stress is applied in the [100] di
    10·1 answer
  • .provide feedback to the controller about the robot's environment, a limited sense of sight and sound
    6·2 answers
  • A 0.3 m3 rigid tank initially contains refrigerant-134a at 14°C. At this state, 55% of the mass is in the vapor phase, and the r
    13·1 answer
  • You are ordering steel cable for a 250 foot long zip-line you are building in your back yard. The cable can be ordered in diamet
    6·2 answers
  • In this type of projection, the angles between the three axes are different:- A) Isometric B) Axonometric C) Trimetric D) Dimetn
    11·1 answer
  • A test of a driver’s perception/reaction time was conducted on a special test track in a rural area. The friction factor f = 0.6
    13·1 answer
  • Describe an example (other than the ones mentioned in this chapter) of data whose confidentiality has a short timeliness, say, a
    15·1 answer
  • Q4. The gross command area of canal is
    6·1 answer
  • 1. (15) A truck scale is made of a platform and four compression force sensors, one at each corner of the platform. The sensor i
    12·1 answer
  • For a small company it's usually best to keep the corporate and brand image as___ as possible​
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!