| 1 |
;;; |
| 2 |
;;; compat.real-elementary-functions |
| 3 |
;;; |
| 4 |
|
| 5 |
;; Gauche 0.9.12 and earlier had real-only trigonometric functions |
| 6 |
;; under undocumented names. |
| 7 |
;; 0.9.13 renamed them as real-sin etc. and made them official. This |
| 8 |
;; module is to run code that used old undocumented API. |
| 9 |
|
| 10 |
(define-module compat.real-elementary-functions |
| 11 |
(export %exp %sin %cos %tan %log %sinpi %cospi %tanpi %asin %acos %atan |
| 12 |
%sinh %cosh %tanh %asinh %acosh %atanh %sqrt %expt)) |
| 13 |
(select-module compat.real-elementary-functions) |
| 14 |
|
| 15 |
(define %exp real-exp) |
| 16 |
(define %sin real-sin) |
| 17 |
(define %cos real-cos) |
| 18 |
(define %tan real-tan) |
| 19 |
(define %log real-ln) |
| 20 |
(define %sinpi real-sinpi) |
| 21 |
(define %cospi real-cospi) |
| 22 |
(define %tanpi real-tanpi) |
| 23 |
(define %asin real-asin) |
| 24 |
(define %acos real-acos) |
| 25 |
(define %atan real-atan) |
| 26 |
(define %sinh real-sinh) |
| 27 |
(define %cosh real-cosh) |
| 28 |
(define %tanh real-tanh) |
| 29 |
(define %asinh real-asinh) |
| 30 |
(define %acosh real-acosh) |
| 31 |
(define %atanh real-atanh) |
| 32 |
(define %sqrt real-sqrt) |
| 33 |
(define %expt real-expt) |