Transcendental Library

Previous Page TOC Index Next Page See Page

Mindy Compiler Mindy Debugger Mindy Object Extensions Streams Library Standard IO Print Library Format Library Melange Interface TK Library Collection extensions Table Extensions String extensions Regular Expressions Transcendental Library Time Library Random Library Matrix Library


The Transcendental Library


4. Introduction

The Transcendental library implements some common mathematical functions and constants, such as sine and cosine. All functions in the Transcendental library signal errors when given invalid arguments, and Dylan floating point precision contagion rules are obeyed. Precise contagion rules are given for each function below.

Note: The Transcendental library is not available on all platforms. At present, it will work only under HP/UX and Microsoft Windows.

5. Exported Names

The following names are exported from the Transcendental module of the Transcendental library:

$single-pi [Constant]

$double-pi [Constant]

sin (x :: <real>) => (y :: <float>) [Function]
cos (x :: <real>) => (y :: <float>) [Function]
tan (x :: <real>) => (y :: <float>) [Function]

asin (y :: <real>) => (x :: <float>), -1 <= y <= +1 [Function]
acos (y :: <real>) => (x :: <float>), -1 <= y <= +1 [Function]

atan (y :: <real>) => (x :: <float>) [Function]

atan2 (y :: <real>, x :: <real>) => (z :: <float>) [Function]

sinh (x :: <real>) => (y :: <float>) [Function]
cosh (x :: <real>) => (y :: <float>) [Function]
tanh (x :: <real>) => (y :: <float>) [Function]

$single-e [Constant]

$double-e [Constant]

log (x :: <real>, #key base) => (y :: <float>), x > 0, base > 1 [Function]

exp (x :: <real>) => (y :: <float>) [Function]

\^ (b :: <real>, x :: <real>) => (y :: <float>) [G.F. method]

\^ (b :: <integer>, x :: <integer>) => (y :: <integer>) [G.F. method]

sqrt (x :: <real>) => (y :: <float>), x >= 0 [Function]

isqrt (x :: <integer>) => (y :: <integer>), x >= 0 [Function]


6. Unimplemented Functions

We intend to someday implement the following functions, but haven’t done so yet:

asinh (y :: <real>) => (x :: <float>) [Function]
acosh (y :: <real>) => (x :: <float>) [Function]
atanh (y :: <real>) => (x :: <float>) [Function]

Mindy Compiler Mindy Debugger Mindy Object Extensions Streams Library Standard IO Print Library Format Library Melange Interface TK Library Collection extensions Table Extensions String extensions Regular Expressions Transcendental Library Time Library Random Library Matrix Library

Previous Page TOC Index Next Page See Page

Copyright 1994, 1995, 1996, 1997 Carnegie Mellon University. All rights reserved.

Send comments and bug reports to gwydion-bugs@cs.cmu.edu