( x . y )
email: frank@consxy.com | resume (pdf)

Package STRICTMATH (link)

Main strictmath package.

Strictmath is a pure common lisp implementation of Java's StrictMath class, for only those functions as needed by CLNL to match NetLogo's output, and only for doubles. It should provide portable results for those functions that it supports.

Contents (link)

  • function cos - cos returns the cos of the angle x.
  • function sin - sin returns the sin of the angle x.
  • function to-radians - to-radians returns the radians equivalent of the angle passed in, in degrees.

Function COS (link)

Syntax:

cos x => result

Arguments and Values:

x---A double representing the angle in radians bounded from [0, 2pi] result---A double representing the cos of the angle

Description:

cos returns the cos of the angle x.

Function SIN (link)

Syntax:

sin x => result

Arguments and Values:

x---A double representing the angle in radians bounded from [0, 2pi] result---A double representing the sin of the angle

Description:

sin returns the sin of the angle x.

Function TO-RADIANS (link)

Syntax:

to-radians deg => rad

Arguments and Values:

deg---A double representing the angle in degrees rad---A double representing the angle in radians

Description:

to-radians returns the radians equivalent of the angle passed in, in degrees.