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]
3 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]3 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
TOPO NÀO CÓ CẤU HÌNH ĐA ĐIỂM
bixtya [17]

Answer:

Tout à fait les gens sont nuls

3 0
3 years ago
Read 2 more answers
A wastewater treatment plant has two primary clarifiers, each 20m in diameter with a 2-m side-water depth. the effluent weirs ar
jasenka [17]

Answer:

overflow rate 20.53 m^3/d/m^2

Detention time 2.34 hr

weir loading  114.06 m^3/d/m

Explanation:

calculation for single clarifier

sewag\  flow Q = \frac{12900}{2} = 6450 m^2/d

surface\  area =\frac{pi}{4}\times diameter ^2 = \frac{pi}{4}\times 20^2

surface area = 314.16 m^2

volume of tankV  = A\times side\ water\ depth

                             =314.16\times 2 = 628.32m^3

Length\ of\  weir = \pi \times diameter of weir

                       = \pi \times 18 = 56.549 m

overflow rate =v_o = \frac{flow}{surface\ area} = \frac{6450}{314.16} = 20.53 m^3/d/m^2

Detention timet_d = \frac{volume}{flow} = \frac{628.32}{6450} \times 24 = 2.34 hr

weir loading= \frac{flow}{weir\ length} = \frac{6450}{56.549} = 114.06 m^3/d/m

6 0
3 years ago
Superheated water vapor at a pressure of 20 MPa, a temperature of 500oC, and a flow rate of 10 kg/s is to be brought to a satura
katrin2010 [14]

Answer:

1.96 kg/s.

Explanation:

So, we are given the following data or parameters or information which we are going to use in solving this question effectively and these data are;

=> Superheated water vapor at a pressure = 20 MPa,

=> temperature = 500°C,

=> " flow rate of 10 kg/s is to be brought to a saturated vapor state at 10 MPa in an open feedwater heater."

=> "mixing this stream with a stream of liquid water at 20°C and 10 MPa."

K1 = 3241.18, k2 = 93.28 and 2725.47.

Therefore, m1 + m2= m3.

10(3241.18) + m2 (93.28) = (10 + m3) 2725.47.

=> 1.96 kg/s.

7 0
3 years ago
State five applications of thermochromic materials
rusak2 [61]

Explanation:

The end-use industries of thermochromic materials include packaging, printing & coating, medical, textile, industrial, and others. Printing & coating is the fastest-growing end-use industry of thermochromic materials owing to a significant increase in the demand for thermal paper for POS systems. The use of thermochromic materials is gaining momentum for interactive packaging that encourages consumers to take a product off the shelf and use it.

8 0
3 years ago
A(n) is a detailed, structured diagram or drawing.
monitta

Answer:

Schematics

Explanation:

A schematic is a detailed structured diagram or drawing. It employs illustrations to help the viewer understand detailed information on the machine or object being described. Its main aim is not to help the observer know what the object looks like physically. It is rather aimed at helping the viewer know how the machine works. This is achieved by only including key and important details to the drawing.

It is most times used in the blueprint and user guides of machines and gadgets used in the home to help users know how these things work so that they can do little fixings should there be such needs.

6 0
3 years ago
Other questions:
  • Convert 0.025 in into mm.
    11·2 answers
  • Which of the following is not a primary or fundamental dimension? (a)-mass m (b)-length L (c)- timer t (d)-volume V
    5·1 answer
  • With increases in magnification, which of the following occur? a. The field of view decreases. b. The ambient illumination decre
    9·1 answer
  • A 12-mm-diameter cylindrical jet of water discharges vertically into the ambient air. Due to surface tension the pressure inside
    14·1 answer
  • Design a posttest-only experiment that would test each of the following causal claims. For each one, identify the study’s indepe
    13·1 answer
  • Determine the output torque To????????p????????, the speed reduction ratio of the transmission R, the tangential loads imposed o
    13·2 answers
  • List five things the welding symbol will tell the welder about the weld that is to be made.​
    13·1 answer
  • Which of the following is NOT a true statement about construction drawings?
    5·1 answer
  • Consider the titration of 100.0 mL of 0.200 M CH3NH2 by 0.100 M HCl.
    13·1 answer
  • Where do you prefer to live?
    5·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!