(abs x)
(atan2 x y)
(cartesian->polar [x y])
(degrees->radians x)
(determinant-2x2 [[a b] [c d]])
The determinant of a 2x2 matrix.
The determinant of a 2x2 matrix.
(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.
(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
(polar->cartesian [r theta])
(polar-angle [x y])
(radians->degrees x)
(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.
(sqrt x)
(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.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close