Liking cljdoc? Tell your friends :D

dali.math


absclj

(abs x)
source

atan2clj

(atan2 x y)
source

cartesian->polarclj

(cartesian->polar [x y])
source

cosclj

(cos x)

The cosine of angle x (in degrees)

The cosine of angle x (in degrees)
sourceraw docstring

degrees->radiansclj

(degrees->radians x)
source

determinant-2x2clj

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

The determinant of a 2x2 matrix.

The determinant of a 2x2 matrix.
sourceraw 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.
sourceraw 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
sourceraw docstring

polar->cartesianclj

(polar->cartesian [r theta])
source

polar-angleclj

(polar-angle [x y])
source

radians->degreesclj

(radians->degrees x)
source

sinclj

(sin x)

The sine of angle x (in degrees)

The sine of angle x (in degrees)
sourceraw 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.
sourceraw docstring

sqrtclj

(sqrt x)
source

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.
sourceraw docstring

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

× close