API for generic.math-functions - clojure-contrib next (in development)

by Konrad Hinsen

Usage:
(ns your-namespace
  (:require clojure.contrib.generic.math-functions))

Overview

Generic math function interface
This library defines generic versions of common mathematical
functions such as sqrt or sin as multimethods that can be
defined for any type.

Public Variables and Functions



abs

multimethod
Usage: (abs x)
Return the abs of x.


acos

multimethod
Usage: (acos x)
Return the acos of x.


approx=

function
Usage: (approx= x y eps)
Return true if the absolute value of the difference between x and y
is less than eps.
Source


asin

multimethod
Usage: (asin x)
Return the asin of x.


atan

multimethod
Usage: (atan x)
Return the atan of x.


atan2

multimethod
Usage: (atan2 x y)
Return the atan2 of x and y.


ceil

multimethod
Usage: (ceil x)
Return the ceil of x.


conjugate

multimethod
Usage: (conjugate x)
Return the conjugate of x.


cos

multimethod
Usage: (cos x)
Return the cos of x.


exp

multimethod
Usage: (exp x)
Return the exp of x.


floor

multimethod
Usage: (floor x)
Return the floor of x.


log

multimethod
Usage: (log x)
Return the log of x.


pow

multimethod
Usage: (pow x y)
Return the pow of x and y.


rint

multimethod
Usage: (rint x)
Return the rint of x.


round

multimethod
Usage: (round x)
Return the round of x.


sgn

multimethod
Usage: (sgn x)
Return the sign of x (-1, 0, or 1).


sin

multimethod
Usage: (sin x)
Return the sin of x.


sqr

multimethod
Usage: (sqr x)
Return the square of x.


sqrt

multimethod
Usage: (sqrt x)
Return the sqrt of x.


tan

multimethod
Usage: (tan x)
Return the tan of x.
Logo & site design by Tom Hickey.
Clojure auto-documentation system by Tom Faulhaber.