FISH READY REFERENCE
Types

Concrete Syntax

Constants

Mathematical Functions

standard_prelude.fsh

Shell Actions

Modifications

Known Bugs

Benchmarks

Mathematical Functions

FISh makes available a set of useful mathematical functions. In FISh-generated C code, calls to these functions become calls to the equivalent functions in the ANSI C math library. The available functions are:
  • acos : float -> float
  • asin : float -> float
  • atan : float -> float
  • atan2 : float -> float -> float
  • cos : float -> float
  • sin : float -> float
  • tan : float -> float
  • cosh : float -> float
  • sinh : float -> float
  • tanh : float -> float
  • expt : float -> float
  • log : float -> float
  • log10 : float -> float
  • pow : float -> float -> float
  • sqrt : float -> float
  • ceil : float -> float
  • fabs : float -> float
  • floor : float -> float
  • fmod : float -> float -> float
Binary functions are now written in-fix.


Last Updated: Friday, 07-Aug-1998 21:33:16 EST


Main | Announcement | Latest Paper | Distribution | Tutorial
Ready Reference | Benchmarks | Designer

Please feel free to send any comments.

Copyright Barry Jay © 1998