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
1. The construction process begins with which of the following stages?
Firdavs [7]

Answer:

c) site preparation

Explanation:

A construction process can be defined as a series of important physical events (processes) that must be accomplished during the execution of a construction project.

Generally, in the construction of any physical asset such as offices, hospitals, schools, stadiums etc, the first step of the construction process is site preparation. Site preparation refers to processes such as clearing, blasting, levelling, landfilling, surveying, cutting, excavating and demolition of all unwanted objects on a piece of land, so as to make it ready for use.

This ultimately implies that, site preparation should be the first task to be accomplished in the construction process.

Hence, the construction process typically begins with site preparation before other activities such as the laying of foundation can be done.

Additionally, construction costs can be defined as the overall costs associated with the development of a built asset, project or property. The construction costs is classified into two (2) main categories and these are; capital and operational costs.

7 0
3 years ago
Which of the following explains the main reason to cut a piece of wood on the outside of the measurement mark?
maks197457 [2]
I think it’s D ?? I’m not completely sure tho
4 0
3 years ago
Engineers are designing a cylindrical air tank and are trying to determine the dimensions of the tank. The proposed material for
lana66690 [7]

Answer:

The length of tank is found to be 0.6 m or 600 mm

Explanation:

In order to determine the length, we need to find a volume for the tank.

For this purpose, we use ideal gas equation:

PV  = nRT

n = no. of moles = m/M

Therefore,

PV = (m/M)(RT)

V = (mRT)/(MP)

where,

V = volume of air = volume of container

m = mass of air = 4.64 kg

R = General Gas Constant = 8.314 J/mol.k

T = temperature of air = 10°C + 273 = 283 K

M = molecular mass of air = 0.02897 kg/mol

P = Pressure of Air = 20 MPa = 20 x 10^6 N/m²

V = (4.64 kg)(8.314 J/mol.k)(283 k)/(0.02897 kg/mol)(20 x 10^6 N/m²)

V = 0.01884 m³

Now, the volume of cylindrical tank is given as:

V = 0.01884 m³ = π(Diameter/2)²(Length)

Length = (0.01884 m³)(4)/π(0.2 m)²

<u>Length = 0.6 m = 600 mm</u>

4 0
3 years ago
Show that for a linearly separable dataset, the maximum likelihood solution for the logisitic regression model is obtained by fi
KATRIN_1 [288]

Answer:

Answer for the question:

"Show that for a linearly separable dataset, the maximum likelihood solution for the logisitic regression model is obtained by finding a weight vector w whose decision boundary wx. "

is explained in the attachment.

Explanation:

8 0
3 years ago
Jodie bought some shirts for 6$ each marge brought some shirts for 8$ each
Alex_Xolod [135]

Answer:

you need more details but if you have to find the difference, its $2.00

Explanation:

8-6=2

3 0
3 years ago
Other questions:
  • Consider a plane composite wall that is composed of two materials of thermal conductivities kA = 0.1 W/m*K and kB = 0.04 W/m*K a
    13·1 answer
  • Find the resolving power of a Fabry-Perot interferometer in which two silver coated plates have reflectance of ???? = 0.9, if th
    12·1 answer
  • A system consists of N very weakly interacting particles at a temperature T sufficiently high so that classical statistical mech
    9·1 answer
  • Describe what V1-V4 is
    10·1 answer
  • Which of the following refers to a full-scale version of a product used to validate performance?
    10·2 answers
  • typedef struct bitNode { int data; struct bitNode *left; struct bstNode *right; } bstNode; int solve(bstNode* root) { if (root =
    15·1 answer
  • Steam in a heating system flows through tubes whose outer diameter is 5 cm and whose walls are maintained at a temperature of 19
    13·1 answer
  • What process is used to remove collodal and dissolved organic matter in waste water ​
    10·1 answer
  • Two previously undeformed rod-shaped specimens of copper are to be plastically deformed by reducing their cross-sectional areas.
    14·1 answer
  • A certain piece of property is assessed at $150,000. If the tax rate is $2.50 per $100, what is the tax on this property?
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!