kmath/kmath-jafama
2021-06-12 10:07:41 +05:30
..
src/main/kotlin/space/kscience/kmath/jafama add: Double using StrictMath 2021-06-12 10:05:57 +05:30
build.gradle.kts chore: refactored and dependency add 2021-06-12 10:05:57 +05:30
README.md add: example and Readme 2021-06-12 10:07:41 +05:30

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))
}