vendor/mruby-source/mrbgems/math.gembox
raw| 1 | # It also works with MRB_NO_STDIO. |
| 2 | |
| 3 | MRuby::GemBox.new do |conf| |
| 4 | # Use standard Math module |
| 5 | conf.gem :core => "mruby-math" |
| 6 | |
| 7 | # Use Rational/Complex numbers |
| 8 | conf.gem :core => "mruby-rational" |
| 9 | conf.gem :core => "mruby-complex" |
| 10 | # Use Complex math functions in CMath module |
| 11 | conf.gem :core => "mruby-cmath" |
| 12 | # Use Multi-precision Integer |
| 13 | conf.gem :core => "mruby-bigint" |
| 14 | end |