Liking cljdoc? Tell your friends :D

dali.math


absclj

(abs x)

atan2clj

(atan2 x y)

cartesian->polarclj

(cartesian->polar [x y])

cosclj

(cos x)

The cosine of angle x (in degrees)

The cosine of angle x (in degrees)
raw docstring

degrees->radiansclj

(degrees->radians x)

determinant-2x2clj

(determinant-2x2 [[a b] [c d]])

The determinant of a 2x2 matrix.

The determinant of a 2x2 matrix.
raw docstring

linear-equation-at-xclj

(linear-equation-at-x {:keys [slope offset]} x)

Calculates the y value according to a linear equation based on the passed x value. The equation information is passed as a map with :slope and :offset keys.

Calculates the y value according to a linear equation based on the
passed x value. The equation information is passed as a map
with :slope and :offset keys.
raw docstring

minusclj

(minus x)

Makes all the numbers of a seq negative and returns it as a vector

Makes all the numbers of a seq negative and returns it as a vector
raw docstring

polar->cartesianclj

(polar->cartesian [r theta])

polar-angleclj

(polar-angle [x y])

radians->degreesclj

(radians->degrees x)

sinclj

(sin x)

The sine of angle x (in degrees)

The sine of angle x (in degrees)
raw docstring

solve-2x2-systemclj

(solve-2x2-system [cx1 cy1 con1] [cx2 cy2 con2])

Solves a 2x2 system of equations. cx is the coeffient of x, cy is the coefficient of y, and the con variables are the constant values.

Solves a 2x2 system of equations. cx is the coeffient of x, cy is
the coefficient of y, and the con variables are the constant
values.
raw docstring

sqrtclj

(sqrt x)

withinclj

(within x [a b])
(within x [a b] error)

Tests whether x is within the range of a and b. a can be less or more than b. The optional error parameter extends both sides of the range by error.

Tests whether x is within the range of a and b. a can be less or
more than b. The optional error parameter extends both sides of the
range by error.
raw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close