Talk:Trigonometric functions: Difference between revisions

From Rosetta Code
Content added Content deleted
m (There is no error. 45 degrees is the same angle as 0.7854 (Pi/4) radians.)
(Repeat?)
Line 1: Line 1:
Why are the last four pairs of numbers different for the ada example? The program was to use the same angle in degrees and radians so as long as the function is set for degrees or radians it should give the same number. --[[User:Mwn3d|Mwn3d]] 07:14, 8 January 2008 (MST)
Why are the last four pairs of numbers different for the ada example? The program was to use the same angle in degrees and radians so as long as the function is set for degrees or radians it should give the same number. --[[User:Mwn3d|Mwn3d]] 07:14, 8 January 2008 (MST)
:There is no error. 45 degrees is the same angle as 0.7854 (Pi/4) radians. A function set for radians cannot return degrees, and vice versa.--[[User:Waldorf|Waldorf]] 21:31, 8 January 2008 (MST)
:There is no error. 45 degrees is the same angle as 0.7854 (Pi/4) radians. A function set for radians cannot return degrees, and vice versa.--[[User:Waldorf|Waldorf]] 21:31, 8 January 2008 (MST)
::Sorry. I think I was confused because the last two (arccot) seem to be exactly the same line of code. Am I crazy? --[[User:Mwn3d|Mwn3d]] 21:36, 8 January 2008 (MST)

Revision as of 04:36, 9 January 2008

Why are the last four pairs of numbers different for the ada example? The program was to use the same angle in degrees and radians so as long as the function is set for degrees or radians it should give the same number. --Mwn3d 07:14, 8 January 2008 (MST)

There is no error. 45 degrees is the same angle as 0.7854 (Pi/4) radians. A function set for radians cannot return degrees, and vice versa.--Waldorf 21:31, 8 January 2008 (MST)
Sorry. I think I was confused because the last two (arccot) seem to be exactly the same line of code. Am I crazy? --Mwn3d 21:36, 8 January 2008 (MST)