[
class tree:
] [
index:
] [
all elements
]
Packages:
Math_Fraction
Index of all elements
[
a
] [
c
] [
d
] [
f
] [
g
] [
i
] [
l
] [
m
] [
r
] [
s
] [
t
] [
u
]
a
add
in file FractionOp.php, method
Math_FractionOp::add()
Returns the sum of two fractions: n = n1 + n2
top
c
compare
in file FractionOp.php, method
Math_FractionOp::compare()
Compares two fractions.
top
d
div
in file FractionOp.php, method
Math_FractionOp::div()
Returns the quotient of two fractions: n = n1 / n2
top
f
floatToFraction
in file FractionOp.php, method
Math_FractionOp::floatToFraction()
Converts float to fraction and try to keep the maximal possible precision.
Fraction.php
procedural page
Fraction.php
FractionOp.php
procedural page
FractionOp.php
top
g
gcd
in file FractionOp.php, method
Math_FractionOp::gcd()
Returns the greatest common divisor of two integers.
getDen
in file Fraction.php, method
Math_Fraction::getDen()
Returns the denominator of the fraction
getNum
in file Fraction.php, method
Math_Fraction::getNum()
Returns the numerator of the fraction
top
i
isFraction
in file FractionOp.php, method
Math_FractionOp::isFraction()
Checks if a given object is an instance of PEAR::Math_Fraction
top
l
lcm
in file FractionOp.php, method
Math_FractionOp::lcm()
Returns the least common multiple of two integers.
top
m
Math_Fraction
in file Fraction.php, class
Math_Fraction
Math_Fraction: class to represent and manipulate fractions (n = a/b)
Math_Fraction
in file Fraction.php, method
Math_Fraction::Math_Fraction()
Constructor for Math_Fraction
Math_FractionOp
in file FractionOp.php, class
Math_FractionOp
Math_FractionOp: static class to operate on Math_Fraction objects
mult
in file FractionOp.php, method
Math_FractionOp::mult()
Returns the product of two fractions: n = n1 * n2
top
r
raiseError
in file FractionOp.php, method
Math_FractionOp::raiseError()
An error capturing function.
reciprocal
in file FractionOp.php, method
Math_FractionOp::reciprocal()
Returns the reciprocal value of a fraction: n = 1/n
reduce
in file FractionOp.php, method
Math_FractionOp::reduce()
An alias of the Math_FractionOp::simplify() method.
top
s
simplify
in file FractionOp.php, method
Math_FractionOp::simplify()
Returns the simplified value (reduction) of a fraction.
stringToFraction
in file FractionOp.php, method
Math_FractionOp::stringToFraction()
Converts string to fraction.
sub
in file FractionOp.php, method
Math_FractionOp::sub()
Returns the subtraction of two fractions: n = n1 - n2
top
t
toFloat
in file Fraction.php, method
Math_Fraction::toFloat()
Float evaluation of the fraction
toString
in file Fraction.php, method
Math_Fraction::toString()
String representation of the fraction
top
u
using_fractionop.php
procedural page
using_fractionop.php
top
Documentation generated on Mon, 11 Mar 2019 15:07:36 -0400 by
phpDocumentor 1.4.4
. PEAR Logo Copyright © PHP Group 2004.