Talk:Trigonometric functions: Difference between revisions

From Rosetta Code
Content added Content deleted
(Ada mistake?)
 
m (There is no error. 45 degrees is the same angle as 0.7854 (Pi/4) radians.)
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)

Revision as of 04:31, 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)