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
olya-2409 [2.1K]
4 years ago
10

3. Given the Taylor series expansion for sin x = x − x3/ 3! + x5/5! − x7/7! . Write a program that takes in an arbitrary integer

for an angle in degrees, converted the degrees to radians and performs the calculation above. Remember you will need a loop to calculate the ! term and float variables to hold the term(s) in the expansion and the converted degrees to radian.
Engineering
1 answer:
katen-ka-za [31]4 years ago
8 0

Answer:

clc

clear

x = input('type value of angle in degrees:\n');

x = x*pi/180; %convverting fron degree to radian

sin_x = x; %as first term of taylor series is x

E = 1; %just giving a value of error greater than desired error

n = 0;

while E > 0.000001

previous = sin_x;

n = n+1;

sin_x = sin_x + ((-1)^n)*(x^(2*n+1))/factorial(2*n+1);

E = abs(sin_x - previous); %calculating error

end

a = sprintf('sin(x) = %1.6f',sin_x);

disp(a)

Explanation:

You might be interested in
Cause and effect of global warming on animals essay
kobusy [5.1K]

A) Jason is correct because smaller wings can cut through air better.

6 0
4 years ago
Liquidated damages are intended to represent anticipated losses to the owner based upon circumstances existing at the time the c
Ganezh [65]

Answer:

1. Loss of income.

2. Rental costs.

3. Utility bills.

4. Loss of rent.

5. Storage costs.

Explanation:

Liquidated damages can be defined as pre-determined damages or clauses that are highlighted or indicated at the time of entering into a contract between a contractor and a client which is mainly based on evaluation of the actual loss the client may incur should the contractor fail to meet the agreed completion date.

Generally, liquidated damages are meant to be fair rather than being a penalty or punitive to the defaulter. It is usually calculated on a daily basis for the loss.

When entering into a contract with another, liquidated damages are intended to represent anticipated losses to the owner based upon circumstances existing at the time the contract was made.

Listed below are five (5) types of potential losses to the owner that would qualify for determination of such potential losses;

1. Loss of income.

2. Rental costs.

3. Utility bills.

4. Loss of rent.

5. Storage costs.

4 0
3 years ago
You should read the lifts safety and operating instructions only if you havent used the automotive lift before
xenn [34]
False

Safety and operating instructions should be reviewed every time before usage. Following a checklist saves life, limb and equipment.
7 0
3 years ago
Introduction to gear and gear ratios: If you have two gears of the same size does the output speed increase, decrease, or remain
creativ13 [48]

Answer:

remain the same constant

Explanation:

if a small gear is making 5 rpm turning a big gear thats making 1 rpm the bug gear is making lots of torque but if its going the opposite way its much harder to turn the big gear 1 rpm just to make the little gear do 5 rpm and it makes way less torque if thre both the same size there ging to stay the same speed

4 0
3 years ago
A thick steel slab (rho= 7800 kg/m3 , cp= 480 J/kg K, k= 50 W/m K) is initially at 300 °C and is cooled by water jets impinging
dimaraw [331]

Answer:

t = 2244.3 sec

Explanation:

calculate the thermal diffusivity

\alpha = \frac{k}{\rho c}

           = \frac{50}{7800\times 480} = 1.34 \times 10^{-5} m^2/s

                   

Temperature at 28 mm distance after t time  = =  50 degree C

we know that

\frac[ T_{28} - T_s}{T_i -T_s} = erf(\frac{x}{2\sqrt{at}})

\frac{ 50 -25}{300-25} = erf [\frac{28\times 10^{-3}}{2\sqrt{1.34\times 10^{-5}\times t}}]

0.909 = erf{\frac{3.8245}{\sqrt{t}}}

from gaussian error function table , similarity variable w calculated as

erf w = 0.909

it is lie between erf w = 0.9008  and erf w = 0.11246 so by interpolation we have

w = 0.08073

erf 0.08073 = erf[\frac{3.8245}{\sqrt{t}}]

0.08073 = \frac{3.8245}{\sqrt{t}}

solving fot t we get

t = 2244.3 sec

3 0
3 years ago
Other questions:
  • List irreversibilities
    11·1 answer
  • A small vehicle is powered by a pulsejet. The available net thrust is 6000 N and the traveling speed is 200 km/hr. The gases lea
    15·1 answer
  • The water requirement for Class H cement is 38% (i.e.,water (%) by weight of cement),whereas the water requirement for barite is
    7·1 answer
  • Given the vector current density J = 10rho2zarho − 4rho cos2 φ aφ mA/m2:
    13·1 answer
  • Patient people vote more often than non-patient people.<br> True<br> O<br> False
    8·1 answer
  • When a 2-kg block is suspended from a spring, the spring is stretched a distance of 20 mm. Determine the natural frequency and t
    14·1 answer
  • Explain the dilemma faced by engineers when the state of technological change does not exactly match the state of social change
    15·1 answer
  • What is a radio wave made up of? Molecules? Electrons? Other?
    15·2 answers
  • A design team is working on creating a new energy-efficient light. They have completed the following steps:
    11·2 answers
  • How do you know what year a mustang is?
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!