subject
Engineering, 05.12.2019 01:31 vadrian4056

Calculating the cos of an angle the numerical value of cos(x) can easily be determined using the visual basic sin function, provided x (in radians) is given as an argument. the value of cos(x) can also be approximated by the series the accuracy of this approximation increases as the number of terms in the series (n) increases. in principle, the summation results in an exact answer when n becomes infinite. as a practical matter, the summation is usually sufficiently accurate for modestly large values of n (say, n = 5 or n = 6). develop a visual basic program that evaluates cos(x) using the first n terms of the series expansion. the values of x (in degrees) and n will be input values. when evaluating the series expansion, calculate factorial using a sub procedure. input and output values using message boxes.

ansver
Answers: 2

Another question on Engineering

question
Engineering, 03.07.2019 15:10
Heat is added to a piston-cylinder device filled with 2 kg of air to raise its temperature 400 c from an initial temperature of t1 27 cand pressure of pi 1 mpa. the process is isobaric process. find a)-the final pressure p2 b)-the heat transfer to the air.
Answers: 1
question
Engineering, 04.07.2019 18:10
Apump is used to circulate hot water in a home heating system. water enters the well-insulated pump operating at steady state at a rate of 0.42 gal/min. the inlet pressure and temperature are 14.7 lbf/in.2, and 180°f, respectively; at the exit the pressure is 60 lbf/in.2 the pump requires 1/15 hp of power input. water can be modeled as an incompressible substance with constant density of 60.58 lb/ft3 and constant specific heat of 1 btu/lb or. neglecting kinetic and potential energy effects, determine the temperature change, in °r, as the water flows through the pump.
Answers: 1
question
Engineering, 04.07.2019 18:10
At 12 noon, the count in a bacteria culture was 400; at 4: 00 pm the count was 1200 let p(t) denote the bacteria cou population growth law. find: (a) an expression for the bacteria count at any time t (b) the bacteria count at 10 am. (c) the time required for the bacteria count to reach 1800.
Answers: 1
question
Engineering, 04.07.2019 18:10
Which of the following components of a pid controlled accumulates the error over time and responds to system error after the error has been accumulated? a)- proportional b)- derivative c)- integral d)- on/off.
Answers: 2
You know the right answer?
Calculating the cos of an angle the numerical value of cos(x) can easily be determined using the vis...
Questions
question
Mathematics, 21.01.2021 05:00
question
Mathematics, 21.01.2021 05:00
question
World Languages, 21.01.2021 05:00
question
Mathematics, 21.01.2021 05:00
question
Social Studies, 21.01.2021 05:00
question
Mathematics, 21.01.2021 05:00
Questions on the website: 13722363