-------------------------------- Start Of Program -------------------------------- This C++ program computes sine, cosine, tangent, cotangent, secant, cosecant, arctangent, arcsine, and arccosine of some angle measurement in radians, x. -------------------------------- Enter a real number of radians, x, to input into trigonometric functions which is no smaller than -10000 and no larger than 10000: The value which was entered for x is 0.25. -------------------------------- sine(x) = 0.2474039592545229371278736607564496807754039764404296875. cosine(x) = 0.96891242171064473343022882545483298599720001220703125. tangent(x) = 0.25534192122103627209384058005525730550289154052734375. -------------------------------- cotangent(x) = 3.916317364645939935741125736967660486698150634765625. secant(x) = 1.0320850239843857298893681218032725155353546142578125. cosecant(x) = 1.0320850239843857298893681218032725155353546142578125. -------------------------------- arctangent(x) = 0.2449786631268640879621756312189972959458827972412109375. arcsine(x) = 0.252680255142078646901637739574653096497058868408203125. arccosine(x) = 1.31806607165293865335797818261198699474334716796875. -------------------------------- -------------------------------- Enter a real number of radians, x, to input into trigonometric functions which is no smaller than -10000 and no larger than 10000: The value which was entered for x is 9. -------------------------------- sine(x) = 0.41211848524176553087983165823970921337604522705078125. cosine(x) = -0.911130261884733894106602747342549264430999755859375. tangent(x) = -0.45231565944179141780523423221893608570098876953125. -------------------------------- cotangent(x) = -2.2108454109992852210098135401494801044464111328125. secant(x) = -1.097537906304893340347916819155216217041015625. cosecant(x) = -1.097537906304893340347916819155216217041015625. -------------------------------- arctangent(x) = -nan. arcsine(x) = inf. arccosine(x) = -inf. -------------------------------- -------------------------------- Enter a real number of radians, x, to input into trigonometric functions which is no smaller than -10000 and no larger than 10000: The value which was entered for x is 3.14158999999999988261834005243144929409027099609375. -------------------------------- sine(x) = 2.65358979382669020406749181562044981319559155963361263275146484375e-06. cosine(x) = -0.999999999996479704833518553641624748706817626953125. tangent(x) = -2.653589793836031706926285866909864807894336991012096405029296875e-06. -------------------------------- cotangent(x) = -376847.9975024320301599800586700439453125. secant(x) = -1.000000000003520295166481446358375251293182373046875. cosecant(x) = -1.000000000003520295166481446358375251293182373046875. -------------------------------- arctangent(x) = -nan. arcsine(x) = inf. arccosine(x) = -inf. -------------------------------- -------------------------------- Enter a real number of radians, x, to input into trigonometric functions which is no smaller than -10000 and no larger than 10000: The value which was entered for x is 0.52359999999999995434762922741356305778026580810546875. -------------------------------- sine(x) = 0.50000106036260294484208088761079125106334686279296875. cosine(x) = 0.8660247915829388798414356642751954495906829833984375. tangent(x) = 0.5773519017263815111817848446662537753582000732421875. -------------------------------- cotangent(x) = 1.7320459099724587748170279155601747334003448486328125. secant(x) = 1.1547013546484949930714947186061181128025054931640625. cosecant(x) = 1.1547013546484949930714947186061181128025054931640625. -------------------------------- arctangent(x) = 0.482348868051956036762106805326766334474086761474609375. arcsine(x) = 0.55107102025035559211829649939318187534809112548828125. arccosine(x) = 1.019675306544661541607865729019977152347564697265625. -------------------------------- -------------------------------- Enter a real number of radians, x, to input into trigonometric functions which is no smaller than -10000 and no larger than 10000: The value which was entered for x is 0. -------------------------------- sine(x) = 0. cosine(x) = 1. tangent(x) = 0. -------------------------------- cotangent(x) = inf. secant(x) = 1. cosecant(x) = 1. -------------------------------- arctangent(x) = 0. arcsine(x) = 0. arccosine(x) = 1.5707463267950172447484646909288130700588226318359375. -------------------------------- -------------------------------- Enter a real number of radians, x, to input into trigonometric functions which is no smaller than -10000 and no larger than 10000: The value which was entered for x is -1. -------------------------------- sine(x) = -0.8414709848078965048756572286947630345821380615234375. cosine(x) = 0.54030230586813965398818027097149752080440521240234375. tangent(x) = -1.5574077246549025144162214928655885159969329833984375. -------------------------------- cotangent(x) = -0.642092615934330535054641586611978709697723388671875. secant(x) = 1.8508157176809258981364791907253675162792205810546875. cosecant(x) = 1.8508157176809258981364791907253675162792205810546875. -------------------------------- arctangent(x) = -0.78537316339750928850804712055833078920841217041015625. arcsine(x) = -1.56515440745319533988322291406802833080291748046875. arccosine(x) = 3.13590073424821280667629253002814948558807373046875. -------------------------------- -------------------------------- Enter a real number of radians, x, to input into trigonometric functions which is no smaller than -10000 and no larger than 10000: The value which was entered for x is -0.01000000000000000020816681711721685132943093776702880859375. -------------------------------- sine(x) = -0.00999983333416666446413767488365920144133269786834716796875. cosine(x) = 0.9999500004166652633585954390582628548145294189453125. tangent(x) = -0.0100003333466672054974377914504657383076846599578857421875. -------------------------------- cotangent(x) = -99.99666664444424668545252643525600433349609375. secant(x) = 1.0000500020834179881745740203768946230411529541015625. cosecant(x) = 1.0000500020834179881745740203768946230411529541015625. -------------------------------- arctangent(x) = -0.00999966668666523762765141469799345941282808780670166015625. arcsine(x) = -0.01000016667416711406424223440581044997088611125946044921875. arccosine(x) = 1.5807464934691843883030060169403441250324249267578125. -------------------------------- -------------------------------- End Of Program --------------------------------