org.jruby
Class RubyMath
java.lang.Object
org.jruby.RubyMath
- public class RubyMath
- extends java.lang.Object
Method Summary |
static RubyFloat |
atan2(IRubyObject recv,
RubyNumeric x,
RubyNumeric y)
|
static RubyFloat |
cos(IRubyObject recv,
RubyNumeric x)
|
static RubyModule |
createMathModule(Ruby runtime)
Create the Math module and add it to the Ruby runtime. |
static RubyFloat |
exp(IRubyObject recv,
RubyNumeric exponent)
|
static RubyArray |
frexp(IRubyObject recv,
RubyNumeric other)
|
static RubyFloat |
ldexp(IRubyObject recv,
RubyNumeric mantissa,
RubyNumeric exponent)
|
static RubyFloat |
log(IRubyObject recv,
RubyNumeric x)
Returns the natural logarithm of x. |
static RubyFloat |
log10(IRubyObject recv,
RubyNumeric x)
Returns the base 10 logarithm of x. |
static RubyFloat |
sin(IRubyObject recv,
RubyNumeric x)
|
static RubyFloat |
sqrt(IRubyObject recv,
RubyNumeric other)
|
static RubyFloat |
tan(IRubyObject recv,
RubyNumeric x)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RubyMath
public RubyMath()
createMathModule
public static RubyModule createMathModule(Ruby runtime)
- Create the Math module and add it to the Ruby runtime.
atan2
public static RubyFloat atan2(IRubyObject recv,
RubyNumeric x,
RubyNumeric y)
cos
public static RubyFloat cos(IRubyObject recv,
RubyNumeric x)
exp
public static RubyFloat exp(IRubyObject recv,
RubyNumeric exponent)
frexp
public static RubyArray frexp(IRubyObject recv,
RubyNumeric other)
ldexp
public static RubyFloat ldexp(IRubyObject recv,
RubyNumeric mantissa,
RubyNumeric exponent)
log
public static RubyFloat log(IRubyObject recv,
RubyNumeric x)
- Returns the natural logarithm of x.
log10
public static RubyFloat log10(IRubyObject recv,
RubyNumeric x)
- Returns the base 10 logarithm of x.
sin
public static RubyFloat sin(IRubyObject recv,
RubyNumeric x)
sqrt
public static RubyFloat sqrt(IRubyObject recv,
RubyNumeric other)
tan
public static RubyFloat tan(IRubyObject recv,
RubyNumeric x)
Copyright © 2002 Jan Arne Petersen. All Rights Reserved.