Add log and atan2 operations for floats #583
Labels
enhancement
New feature or request
HVM
About the HVM
prelude
Bend's builtin types and functions
syntax
About Bend's syntax
HVM exposes
log
andatan2
operations, but they're not available in Bend except as a hack (using|
and&
operators).We should expose them to users with a native operation.
I don't know what syntax to use other than
log(a, b)
and(log a b)
, but I don't really like it since it is different from all the other operators.There multiple way to implement this:
log(a, b)
as a numeric operation.log a b = a & b
. This is a bit of a hack and I don't love it, but it's the simplest.log a b
that gets converted into the numeric operation as a compiler pass.The text was updated successfully, but these errors were encountered: