Skip to content

Conversation

@EskCresh
Copy link

For doing math, it's really helpful to have the power/exponent function available. I was going to suggest some more advanced mathematical functions, but really you can get decent approximations for most things as long as power is available!

For example, here's a Beadi file which generates values from the standard normal using the Box-Muller transform, using approximations for the natural log and sine functions. It's very much approximate (floating point math makes it hard for the tails of the distribution to really work well), but should be good for anything that Beadi would be used for.

@EskCresh
Copy link
Author

EskCresh commented Nov 12, 2024

I think this is part of #18 as well, which admittedly I should probably go take a look at. If you want to close this because it's planned there instead, no worries!

@ThatBatLuna
Copy link
Owner

Aw sweet! Well... #18 is basically stalled atm, so i'm very happy to merge this one as soon as a I can take a look :D

@ThatBatLuna ThatBatLuna merged commit 80d24e4 into ThatBatLuna:staging Nov 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants