Skip to content

Commit

Permalink
Merge pull request #153 from AttilaMihaly/add-missing-math-functions
Browse files Browse the repository at this point in the history
Add missing math functions
  • Loading branch information
AttilaMihaly authored Oct 11, 2023
2 parents baa2f31 + dad6f03 commit a7b89d3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions morphir/sdk/core/src/morphir/sdk/Basics.scala
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,10 @@ object Basics {
if (a < min) min
else if (a > max) max
else a
@inline def logBase(base: Float, number: Float): Float =
divide(scala.math.log(number))(scala.math.log(base))
@inline def e: Float =
Math.E
@inline def isNaN(a: Float): Bool = a.isNaN
@inline def isInfinite(a: Float): Bool = a.isInfinite

Expand Down

0 comments on commit a7b89d3

Please sign in to comment.