File: math.gembox

package info (click to toggle)
mruby 3.4.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 5,584 kB
  • sloc: ansic: 51,933; ruby: 29,510; yacc: 7,077; cpp: 517; makefile: 51; sh: 42
file content (14 lines) | stat: -rw-r--r-- 385 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# It also works with MRB_NO_STDIO.

MRuby::GemBox.new do |conf|
  # Use standard Math module
  conf.gem :core => "mruby-math"

  # Use Rational/Complex numbers
  conf.gem :core => "mruby-rational"
  conf.gem :core => "mruby-complex"
  # Use Complex math functions in CMath module
  conf.gem :core => "mruby-cmath"
  # Use Multi-precision Integer
  conf.gem :core => "mruby-bigint"
end