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
Arlecino [84]
3 years ago
5

Write C code that does the following: 1. Numerically compute the following series 1−13+15−17+..=????4 and approximate π. Vary it

eration numbers. Note that the general term, an, is expressed as ????????=(−1)????+12????−1

Engineering
1 answer:
yulyashka [42]3 years ago
3 0

Answer:

Explanation:

See attachment for the screen shot of the code.

//Sample Output

nter the numberof iterations4 The sum of the series is0.723810

//Code to copy

#include<stdio.h>

int main()

{

// Declare and initialize the Variables

int i, n;

int sign_flag = 1;

double sum = 0.0;

// Taking the number of iteration as input

printf("Enter the number of iterations ");

scanf("%d", &n);

// Sum upto n terms

// Sign flag is used for alternate positive and negative terms

for (i = 1; i <= n; i++)

{

sum = sum + sign_flag*(1.0 / (2 * i - 1));

sign_flag = -sign_flag;

}

// Print the sum

printf("The sum of the series is %lf\n", sum);

return 0;

}

You might be interested in
At his review last year, Lucas was promised a 20 percent raise if he met his production goals. Raises were included in today’s p
Murrr4er [49]

Answer: Instrumentality;low

Explanation: Instrumentality is the impact a person have or will be able to render to a given activity or his or her job. The Instrumentality of a person has been found to be proportional to the what outcome of the person's efforts. Especially if the person's explanations are meant.

When a person's expectations are not meant it will cause the person's Instrumentality to be low.

4 0
3 years ago
A 3-phase , 1MVA, 13.8kV/4160V, 60 Hz, transformer with Y-Delta winding connection is supplying a3-phase, 0.75 p.u. load on the
Tanya [424]

Answer:

a) 23.89 < -25.84 Ω

b) 31.38 < 25.84 A

c) 0.9323 leading

Explanation:

A) Calculate the load Impedance

current on load side = 0.75 p.u

power factor angle = 25.84

I_{load} = 0.75 < 25.84°

attached below is the remaining part of the solution

<u>B) Find the input current on the primary side in real units </u>

load current in primary = 31.38 < 25.84 A

<u>C) find the input power factor </u>

power factor = 0.9323 leading

<em></em>

<em>attached below is the detailed solution </em>

8 0
3 years ago
Air is pumped from a vacuum chamber until the pressure drops to 3 torr. If the air temperature at the end of the pumping process
malfutka [58]

Answer:

The final pressure is 3.16 torr

Solution:

As per the question:

The reduced pressure after drop in it, P' = 3 torr = 3\times 0.133\ kPa

At the end of pumping, temperature of air, T = 5^{\circ}C = 278 K

After the rise in the air temperature, T' = 20^{\circ}C = 293 K

Now, we know the ideal gas eqn:

PV = mRT

So

P = \frac{m}{V}RT

P = \rho_{a}RT          (1)

where

P = Pressure

V = Volume

\rho_{a} = air\ density

R = Rydberg's constant

T = Temperature

Using eqn (1):

P = \rho_{a}RT

\rho_{a} = \frac{P}{RT}

\rho_{a} = \frac{3 times 0.133\times 10^{3}}{0.287\times 278} = 0.005 kg/m^{3}

Now, at constant volume the final pressure, P' is given by:

\frac{P}{T} = \frac{P'}{T'}

P' = \frac{P}{T}\times T'

P' = \frac{3}{278}\times 293 = 3.16 torr

7 0
4 years ago
write a paragraph on how iron and copper(separately) is manufactured, what it consists of and processes that it went through to
trasher [3.6K]

Answer:

Iron is manufactured in a blast furnace. First, iron ore is mixed with coke and heated to form an iron-rich clinker called 'sinter'. Sintering is an important part of the overall process as it reduces waste and provides an efficient raw material for iron making. Coke is produced from carefully selected grades of coal.

Copper is typically extracted from oxide and sulfide ores that contain between 0.5 and 2.0% copper. ... Regardless of the ore type, mined copper ore must first be concentrated to remove gangue or unwanted materials embedded in the ore. The first step in this process is crushing and powdering ore in a ball or rod mill.

5 0
3 years ago
if you’re disassembling a master cylinder and the front piston assembly is stuck in the master cylinder you can
lianna [129]

Answer:

Put water in the cylinder then push the piston inward

Explanation:

When water is put it displaces all the air making it possible for the piston to be pulled easier and without distraction

6 0
3 years ago
Other questions:
  • What are the three main areas of bioengineering?
    11·1 answer
  • A load P is applied horizontally while the other end is fixed to a structure. A load P is applied horizontally while the other e
    6·1 answer
  • An example of Analog Data would be:
    8·1 answer
  • Compute the atomic density (the number of atoms per cm3 rather than mass density g/cm3) for a perfect crystal of silicon at room
    14·1 answer
  • Clutches And Torque Converters both provide all of these EXCEPT:
    14·1 answer
  • A piece of corroded steel plate was found in submerged ocean vessel. It was estimated that the area of plate to be ~38 inch 2, a
    10·1 answer
  • An engineer lives in Hawaii at a location where the annual rain fall is 300 inches. She decides to use the rain to generate elec
    10·1 answer
  • Which one is your choice and Why?​
    8·1 answer
  • SM Success Maker
    11·1 answer
  • What was the reason alloys were used instead of metals like copper, tin, or iron?
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!