factor/extra/math/trig/trig.factor

8 lines
221 B
Factor
Raw Normal View History

2008-10-03 03:19:03 -04:00
! Copyright (C) 2008 Eduardo Cavazos.
! See http://factorcode.org/license.txt for BSD license.
2007-09-20 18:09:08 -04:00
USING: math math.constants ;
IN: math.trig
: deg>rad ( x -- y ) pi * 180 / ; inline
: rad>deg ( x -- y ) 180 * pi / ; inline