kmath/kmath-jafama/README.md
2021-06-12 10:07:41 +05:30

554 B

Module kmath-jafama

Jafama based implementation of DoubleField of kmath-operations.

  • JafamaDoubleField : DoubleField implementation using FastMath
  • StrictJafamaDoubleField - DoubleField implementation using StrictFastMath

Examples

Different Operations on DoubleField

package space.kscience.kmath.jafama

import net.jafama.FastMath


fun main(){
    val a = JafamaDoubleField.number(2.0)
    val b = StrictJafamaDoubleField.power(FastMath.E,a)
    println(JafamaDoubleField.add(b,a))
    println(StrictJafamaDoubleField.ln(b))
}