6 Fast Math
ns stats-with-clojure.fast-math
(:require
(:as kindly]
[scicloj.kindly.v4.api :as kind]
[scicloj.kindly.v4.kind :as fc])) [fastmath.core
6.1 What is Fast Math?
https://github.com/generateme/fastmath
why use it?
speed
tested libraries
constants
trig functions
1) (fc/abs -
1.0
9) (fc/sqrt
3.0
0.5) (fc/sin
0.47942553860420295
/ fc/PI 2)) (fc/sin (
1.0
1) (fc/exp
2.7182818284590455
5) (fc/exp
148.4131591025766
10) (fc/log
2.302585092994046
(fc/log fc/E)
1.0