A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://clojure.github.io/algo.generic/clojure.algo.generic.math-functions-api.html below:

functions - algo.generic 0.1.4-SNAPSHOT API documentation

API for clojure.algo.generic.math-functions -

Full namespace name:

clojure.algo.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
absmultimethod
Usage: (abs x)
       (abs x math-context)
Return the absolute value of x. If x is a BigDecimal, abs takes an optional
math-context argument.
Source

acosmultimethod
Usage: (acos x)
Return the acos of x.
Source

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

asinmultimethod
Usage: (asin x)
Return the asin of x.
Source

atanmultimethod
Usage: (atan x)
Return the atan of x.
Source

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

ceilmultimethod
Usage: (ceil x)
Return the ceil of x.
Source

conjugatemultimethod
Usage: (conjugate x)
Return the conjugate of x.
Source

cosmultimethod
Usage: (cos x)
Return the cos of x.
Source

defmacro-macro
Usage: (defmacro- name & decls)
Same as defmacro but yields a private definition
Source

expmultimethod
Usage: (exp x)
Return the exp of x.
Source

floormultimethod
Usage: (floor x)
Return the floor of x.
Source

logmultimethod
Usage: (log x)
Return the log of x.
Source

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

rintmultimethod
Usage: (rint x)
Return the rint of x.
Source

roundmultimethod
Usage: (round x)
       (round x math-context)
Round x.
If x is a BigDecimal, a math-context argument is also required:
  (round x math-context)
If x is a Ratio,
  (round x) converts x to a double and rounds;
  (round x math-context) converts x to a BigDecimal and rounds.
Source

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

sinmultimethod
Usage: (sin x)
Return the sin of x.
Source

sqrmultimethod
Usage: (sqr x)
Return the square of x.
Source

sqrtmultimethod
Usage: (sqrt x)
Return the sqrt of x.
Source

tanmultimethod
Usage: (tan x)
Return the tan of x.
Source

Logo & site design by

Tom Hickey

.

Clojure auto-documentation system by Tom Faulhaber.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4