Skip to content
This repository has been archived by the owner on Nov 17, 2017. It is now read-only.

nickmccurdy/magician-clojure

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Deprecated

Use a more complete and well supported math system like Octave, which is compatible with MATLAB.

magician

Build Status

A suite of handy functions for doing calculations in Clojure.

Usage

FIXME

Examples

>> require 'magician'
=> true
>> [1,2,3].sum
=> 6
>> [1,2,3].mean
=> 2.0
>> [1,100,5].range
=> 99
>> [1,2,2,3,3,3].occurences
=> {1=>1, 2=>2, 3=>3}
>> 6.factors
=> [1, 2, 3, 6]
>> 6.divisible? 3
=> true
>> 7.prime?
=> true
>> 5.factorial
=> 120
>> Math.combinations(10,5)
=> 252
>> Math.triplet?(3,4,5)
=> true
>> Math.quadratic(2,1,0)
=> [-0.5, 0.0]
>> 'racecar'.palindrome?
=> true

License

Copyright © 2014 FIXME

Distributed under the Eclipse Public License either version 1.0 or (at your option) any later version.

About

A Clojure port of the magician gem for Ruby.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

 

Packages