Scala Library
|
|
scala/math/package.scala
]
object
package
extends
AnyRefValue Summary | |
val
|
E
: Double
The
double value that is closer than any other to
e , the base of the natural logarithms. |
val
|
Pi
: Double
The
double value that is closer than any other to
pi , the ratio of the circumference of a circle to its
diameter. |
Method Summary | |
def
|
IEEEremainder (x : Double, y : Double) : Double |
def
|
abs (x : Int) : Int |
def
|
abs (x : Double) : Double |
def
|
abs (x : Long) : Long |
def
|
abs (x : Float) : Float |
def
|
acos (x : Double) : Double |
def
|
asin (x : Double) : Double |
def
|
atan (x : Double) : Double |
def
|
atan2
(y : Double, x : Double) : Double
Converts rectangular coordinates
(x, y) to polar
(r, theta) . |
def
|
cbrt (x : Double) : Double |
def
|
ceil (x : Double) : Double |
def
|
cos (x : Double) : Double |
def
|
cosh (x : Double) : Double |
def
|
exp
(x : Double) : Double
Returns Euler's number
e raised to the power of a
double value. |
def
|
expm1 (x : Double) : Double |
def
|
floor (x : Double) : Double |
def
|
hypot (x : Double, y : Double) : Double |
def
|
log (x : Double) : Double |
def
|
log10 (x : Double) : Double |
def
|
log1p (x : Double) : Double |
def
|
max (x : Double, y : Double) : Double |
def
|
max (x : Long, y : Long) : Long |
def
|
max (x : Float, y : Float) : Float |
def
|
max (x : Int, y : Int) : Int |
def
|
min (x : Double, y : Double) : Double |
def
|
min (x : Int, y : Int) : Int |
def
|
min (x : Long, y : Long) : Long |
def
|
min (x : Float, y : Float) : Float |
def
|
pow
(x : Double, y : Double) : Double
Returns the value of the first argument raised to the power of the
second argument.
|
def
|
random
: Double
Returns a
double value with a positive sign, greater than
or equal to 0.0 and less than 1.0 . |
def
|
rint
(x : Double) : Double
Returns the
double value that is closest in value to the
argument and is equal to a mathematical integer. |
def
|
round
(x : Float) : Int
Returns the closest
long to the argument. |
def
|
round (x : Double) : Long |
def
|
signum (x : Float) : Float |
def
|
signum (x : Double) : Double |
def
|
signum (x : Long) : Long |
def
|
signum (x : Int) : Int |
def
|
sin (x : Double) : Double |
def
|
sinh (x : Double) : Double |
def
|
sqrt (x : Double) : Double |
def
|
tan (x : Double) : Double |
def
|
tanh (x : Double) : Double |
def
|
toDegrees
(x : Double) : Double
Converts an angle measured in radians to an approximately equivalent
angle measured in degrees.
|
def
|
toRadians
(x : Double) : Double
Converts an angle measured in degrees to an approximately equivalent
angle measured in radians.
|
def
|
ulp (x : Double) : Double |
def
|
ulp (x : Float) : Float |
Methods inherited from AnyRef | |
getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized |
Methods inherited from Any | |
==, !=, isInstanceOf, asInstanceOf |
Value Details |
val
E : Double
double
value that is closer than any other to
e
, the base of the natural logarithms.
val
Pi : Double
double
value that is closer than any other to
pi
, the ratio of the circumference of a circle to its
diameter.Method Details |
def
random : Double
double
value with a positive sign, greater than
or equal to 0.0
and less than 1.0
.x -
an angle, in degreesx
in radians.x -
angle, in radiansx
in degrees.e
raised to the power of a
double
value.x -
the exponent to raise e
to.ea
, where e
is the base of the natural logarithms.double
value that is closest in value to the
argument and is equal to a mathematical integer.x -
a double
value(x, y)
to polar
(r, theta)
.x -
the ordinate coordinatey -
the abscissa coordinate(r, theta)
in polar coordinates that corresponds to the point
(x, y)
in Cartesian coordinates.x -
the base.y -
the exponent.xy
.long
to the argument.x -
a floating-point value to be rounded to a long
.long
value.
Scala Library
|
|