Math_Polynomial
[ class tree: Math_Polynomial ] [ index: Math_Polynomial ] [ all elements ]

File: PolynomialOp.php

Source Location: /Math_Polynomial-0.1.0/PolynomialOp.php

Classes:

Math_PolynomialOp
Class for operations on Math_Polynomial objects

Page Details:

Static methods used to operate on Polynomial objects

Includes:

require_once('Math/Polynomial.php') [line 88]
Require Polynomial class definition

MATH_POLYNOMIAL_CONCAVE_DOWN [line 51]

MATH_POLYNOMIAL_CONCAVE_DOWN = 3
Flag indicating concave down

[ Top ]



MATH_POLYNOMIAL_CONCAVE_UP [line 39]

MATH_POLYNOMIAL_CONCAVE_UP = 1
Flag indicating concave up

[ Top ]



MATH_POLYNOMIAL_CRITICAL_POINT [line 45]

MATH_POLYNOMIAL_CRITICAL_POINT = 2
Flag indicating that this is a critical point

[ Top ]



MATH_POLYNOMIAL_DECREASING [line 63]

MATH_POLYNOMIAL_DECREASING = 5
Flag indicating curve is decreasing

[ Top ]



MATH_POLYNOMIAL_INCREASING [line 57]

MATH_POLYNOMIAL_INCREASING = 4
Flag indicating curve is increasing

[ Top ]



MATH_POLYNOMIAL_QUADRANT_1 [line 68]

MATH_POLYNOMIAL_QUADRANT_1 = 1

[ Top ]



MATH_POLYNOMIAL_QUADRANT_2 [line 73]

MATH_POLYNOMIAL_QUADRANT_2 = 2

[ Top ]



MATH_POLYNOMIAL_QUADRANT_3 [line 78]

MATH_POLYNOMIAL_QUADRANT_3 = 3

[ Top ]



MATH_POLYNOMIAL_QUADRANT_4 [line 83]

MATH_POLYNOMIAL_QUADRANT_4 = 4

[ Top ]



MATH_POLYNOMIAL_ROUND_BOUNDARY [line 32]

MATH_POLYNOMIAL_ROUND_BOUNDARY = 0.0001
Rounding boundary for numbers that get multiplied together

If we multiply two numbers, 0.33333 and 3, should we round this result to 1, or leave it as 0.99999? If the difference between 1 and 0.99999 is less than $_round_boundary it will be rounded to 1, otherwise it will be left as a float.

This only gets defined if it's not defined already, allowing the user to define this for themselves if they'd like better/worse precision. Setting this lower gives better precision... setting it too low makes some multiplication look funny and can make division fail.


[ Top ]



Documentation generated on Mon, 11 Mar 2019 14:38:25 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.