subject
Engineering, 13.11.2019 17:31 marrizza7

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 14:10
Amass of m 1.5 kg of steam is contained in a closed rigid container. initially the pressure and temperature of the steam are: p 1.5 mpa and t 240°c (superheated state), respectively. then the temperature drops to t2= 100°c as the result of heat transfer to the surroundings. determine: a) quality of the steam at the end of the process, b) heat transfer with the surroundings. for: p1.5 mpa and t 240°c: enthalpy of superheated vapour is 2900 kj/kg, specific volume of superheated vapour is 0. 1483 m/kg, while for t 100°c: enthalpy of saturated liquid water is 419kj/kg, specific volume of saturated liquid water is 0.001043m/kg, enthalpy of saturated vapour is 2676 kj/kg, specific volume of saturated vapour is 1.672 m/kg and pressure is 0.1 mpa.
Answers: 3
question
Engineering, 04.07.2019 18:10
Adouble-strand no. 60 roller chain is used to transmit power between a 13-tooth driving sprocket rotating at 300 rev/min and a 52-tooth driven sprocket. a) what is the allowable horsepower of this drive? b) estimate the center-to-center distance if the chain length is 82 pitches. c) estimate the torque and bending force on the driving shaft by the chain if the actual horsepower transmitted is 30 percent less than the corrected (allowable) power.
Answers: 3
question
Engineering, 04.07.2019 18:10
Water at 55c flows across a flat plate whose surface temperature is held constant at 95c. if the temperature gradient at the plate's surface for a given value of x is 18 c/mm, find a) local heat transfer coefficient. b) heat flux
Answers: 3
question
Engineering, 04.07.2019 18:20
Steam enters a converging nozzle at 3.0 mpa and 500°c with a at 1.8 mpa. for a nozzle exit area of 32 cm2, determine the exit velocity, mass flow rate, and exit mach number if the nozzle: negligible velocity, and it exits (a) is isentropic (b) has an efficiency of 94 percent
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
History, 02.01.2020 18:31
question
Mathematics, 02.01.2020 18:31
question
History, 02.01.2020 18:31
question
Mathematics, 02.01.2020 18:31
question
Social Studies, 02.01.2020 18:31
Questions on the website: 13722362