Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add missing math functions #153

Merged
merged 9 commits into from
Oct 11, 2023
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
Loading