1NAME 2 r2d - convert radians to degrees 3 4SYNOPSIS 5 r2d(x [,eps]) 6 7TYPES 8 x number (real or complex) 9 eps nonzero real, defaults to epsilon() 10 11 return number 12 13DESCRIPTION 14 Given x radians, return the equivalent number of degrees. 15 16 The eps controls the precision of the calculated internal 17 constant pi / 180. 18 19EXAMPLE 20 ; pi = pi(1e-20) 21 ; print r2d(pi), r2d(pi/3), r2d(2*pi) 22 180 60 360 23 24 ; print r2d(pi+4i), r2d(pi/3 + 1i*pi), r2d(pi/5 + 5i*pi) 25 180+~229.18311805232928350739i 60+180, 36+900i 26 27LIMITS 28 eps > 0 29 30LINK LIBRARY 31 NUMBER *qpidiv180(NUMBER *eps) 32 33SEE ALSO 34 d2r, g2r, r2g, d2g, g2d, 35 sin, cos, tan, sec, csc, cot, epsilon 36 37## Copyright (C) 2021 Landon Curt Noll 38## 39## Calc is open software; you can redistribute it and/or modify it under 40## the terms of the version 2.1 of the GNU Lesser General Public License 41## as published by the Free Software Foundation. 42## 43## Calc is distributed in the hope that it will be useful, but WITHOUT 44## ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 45## or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General 46## Public License for more details. 47## 48## A copy of version 2.1 of the GNU Lesser General Public License is 49## distributed with calc under the filename COPYING-LGPL. You should have 50## received a copy with calc; if not, write to Free Software Foundation, Inc. 51## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 52## 53## Under source code control: 2021/09/07 12:04:28 54## File existed as early as: 2021 55## 56## chongo <was here> /\oo/\ http://www.isthe.com/chongo/ 57## Share and enjoy! :-) http://www.isthe.com/chongo/tech/comp/calc/ 58