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 kind of energy transformation happens when a boy uses energy from a sandwich to run a race​
Semmy [17]
A boy eat a energy of a sandwich to run a race because when they eat a sandwich it helps them to help it mid workout and real nutritions of NYC and bring extra fuel and eating the right thing
I hope this help
4 0
3 years ago
Read 2 more answers
PLEASE HELP!!! ILL GIVE BRANLIEST *EXTRA POINTS* dont skip :((
Oksi-84 [34.3K]
The first one is the answer
8 0
3 years ago
Read 2 more answers
Steam enters an adiabatic turbine at 8 MPa and 500C with a mass flow rate of 3
Vinil7 [7]

Answer:

a)temperature=69.1C

b)3054Kw

Explanation:

Hello!

To solve this problem follow the steps below, the complete procedure is in the attached image

1. draw a complete outline of the problem

2. to find the temperature at the turbine exit  use termodinamic tables to find the saturation temperature at 30kPa

note=Through laboratory tests, thermodynamic tables were developed, these allow to know all the thermodynamic properties of a substance (entropy, enthalpy, pressure, specific volume, internal energy etc ..)  

through prior knowledge of two other properties such as pressure and temperature.  

3. Using thermodynamic tables find the enthalpy and entropy at the turbine inlet, then find the ideal enthalpy using the entropy of state 1 and the outlet pressure = 30kPa

4. The efficiency of the turbine is defined as the ratio between the real power and the ideal power, with this we find the real enthalpy.

Note: Remember that for a turbine with a single input and output, the power is calculated as the product of the mass flow and the difference in enthalpies.

5. Find the real power of the turbine

3 0
3 years ago
Which crystal system(s) listed below has (have) the following relationship for the unit cell edge lengths?
lianna [129]

Answer:

Both B and G ( Hexagonal and Tetragonal )

Explanation:

The crystals system listed below has the following relationship for the unit cell edge lengths; a = b ≠ c ( hexagonal and Tetragonal )

hexagonal ; represents  a crystal system  which has three equal axes that have an angle of 60⁰ between them while Tetragonal denotes crystals that have  three axes which have only two of its axes equal in length.

5 0
3 years ago
If it is desired to lay off a distance of 10,000' with a total error of no more than ± 0.30 ft. If a 100' tape is used and the
Ira Lisetskai [31]

Answer:

± 0.003 ft

Explanation:

Since our distance is 10,000 ft and we need to use a full tape measure of 100 ft. We find that 10,000 = 100 × 100.

Let L' = our distance and L = our tape measure

So, L' = 100L

Now by error determination ΔL' = 100ΔL

Now ΔL' = ± 0.30 ft

ΔL = ΔL'/100

= ± 0.30 ft/100

= ± 0.003 ft

So, the maxim error per tape is ± 0.003 ft

3 0
3 years ago
Other questions:
  • 5. Which of these least accurately describes what happens when abnormal combustion raises the temperature and pressure inside th
    8·1 answer
  • A 3.5-m3 rigid tank initially contains air whose density is 2 kg/m3 . The tank is connected to a high-pressure supply line throu
    8·1 answer
  • Please answer question #2
    6·1 answer
  • A spherical tank for storing gas under pressure is 25 m in diameter and is made of steel 15 mm thick. The yield point of the mat
    5·2 answers
  • 6. What symptom will be exhibited on an engine equipped with a pneumatic governor system if the cooling fins
    14·1 answer
  • Fill in the blank to output the quotient of dividing 100 by 42. print (100______42)​
    8·1 answer
  • Match the scenario to the related government program.
    8·1 answer
  • Pleaseeee help me with this!!
    10·1 answer
  • Rivet gauge, or transverse pitch is the distance between the Group of answer choices heads of rivets in the same row. centers of
    11·1 answer
  • s) Use Cramer’s rule to solve the system below, and state the condition at which solution exists. ax+by = 1 cx+dy =−1
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!