math-clj

FCommon math functions for Clojure.

License

License

GroupId

GroupId

com.github.sebhoss
ArtifactId

ArtifactId

math-clj
Last Version

Last Version

1.0.0
Release Date

Release Date

Type

Type

clojure
Description

Description

math-clj
FCommon math functions for Clojure.
Project URL

Project URL

https://github.com/sebhoss/math-clj
Source Code Management

Source Code Management

https://github.com/sebhoss/math-clj

Download math-clj

Dependencies

compile (1)

Group / Artifact Type Version
org.clojure : clojure jar 1.5.1

test (2)

Group / Artifact Type Version
com.github.sebhoss : bootstrap-clj jar 1.1.0
junit : junit jar 4.11

Project Modules

There are no modules declared in this project.

math-clj

Common math related functions, written in Clojure.

Usage

The library lives under com.github.sebhoss and is divided into the following namespaces and functions:

math/

Various math functions (most from JDK/Math): e, Pi, mean, abs, floor, ceil, round, sgn, signum, sgn-eq?, sgn-different?, ln, log10, exp, pow, sqrt, root, sin, cos, tan, asin, acos, atan, sinh, cosh, tanh

predicate/

  • (not-nil? x) – true if x is not nil, false otherwise
  • (≈ x y epsilon) – true if x is within epsilon of y, false otherwise
  • (≈0 x epsilon) – true if x is within epsilon of zero

Integration

Maven

<dependencies>
  <dependency>
    <groupId>com.github.sebhoss</groupId>
    <artifactId>math-clj</artifactId>
    <version>[1.0.0,2.0.0)</version>
  </dependency>
</dependencies>

Leiningen

[com.github.sebhoss/math-clj "[1.0.0,2.0.0)"]

License

This program is free software. It comes without any warranty, to the extent permitted by applicable law. You can redistribute it and/or modify it under the terms of the Do What The Fuck You Want To Public License, Version 2, as published by Sam Hocevar. See http://www.wtfpl.net/ for more details.

Versions

Version
1.0.0