![]() |
Qore Programming Language Reference Manual 1.12.3
|
Modules | |
| Math Constants | |
Functions | |
| int | Qore::abs (int i) |
| Returns the absolute value of the argument passed. More... | |
| number | Qore::abs (number n) |
| Returns the absolute value of the argument passed. More... | |
| float | Qore::abs (softfloat f) |
| Returns the absolute value of the argument passed. More... | |
| float | Qore::abs () |
| This function variant does nothing at all; it is only included for backwards-compatibility with qore prior to version 0.8.0 for functions that would ignore type errors in arguments. More... | |
| number | Qore::acos (number n) |
| Returns the value in radians of the arc cosine of the given value. More... | |
| float | Qore::acos (softfloat f) |
| Returns the value in radians of the arc cosine of the given value. More... | |
| number | Qore::asin (number n) |
| Returns the value in radians of the arc sine of the given value. More... | |
| float | Qore::asin (softfloat f) |
| Returns the value in radians of the arc sine of the given value. More... | |
| float | Qore::asin () |
| This function variant does nothing at all; it is only included for backwards-compatibility with qore prior to version 0.8.0 for functions that would ignore type errors in arguments. More... | |
| number | Qore::atan (number n) |
| Returns the value in radians of the arc tangent of the given value. More... | |
| float | Qore::atan (softfloat f) |
| Returns the value in radians of the arc tangent of the given value. More... | |
| float | Qore::atan () |
| This function variant does nothing at all; it is only included for backwards-compatibility with qore prior to version 0.8.0 for functions that would ignore type errors in arguments. More... | |
| number | Qore::atan2 (number y, number x) |
| Returns the principal value of the arc tangent of y/x, using the signs of the two arguments to determine the quadrant of the result. More... | |
| float | Qore::atan2 (softfloat y, softfloat x) |
| Returns the principal value of the arc tangent of y/x, using the signs of the two arguments to determine the quadrant of the result. More... | |
| float | Qore::atan2 () |
| This function variant does nothing at all; it is only included for backwards-compatibility with qore prior to version 0.8.0 for functions that would ignore type errors in arguments. More... | |
| number | Qore::cbrt (number n) |
| Returns the cube root of the number passed. More... | |
| float | Qore::cbrt (softfloat f) |
| Returns the cube root of the number passed. More... | |
| float | Qore::cbrt () |
| This function variant does nothing at all; it is only included for backwards-compatibility with qore prior to version 0.8.0 for functions that would ignore type errors in arguments. More... | |
| int | Qore::ceil (int num, int prec=0) |
| Returns the smallest multiple of -prec-th power of 10 that is greater than or equal to num. (Thus, for non-negative prec just returns num). More... | |
| float | Qore::ceil (softfloat num, int prec=0) |
| Returns the smallest multiple of -prec-th power of 10 that is greater than or equal to num. More... | |
| number | Qore::ceil (number num, int prec=0) |
| Returns the smallest multiple of -prec-th power of 10 that is greater than or equal to num. More... | |
| float | Qore::ceil () |
| This function variant does nothing at all; it is only included for backwards-compatibility with qore prior to version 0.8.0 for functions that would ignore type errors in arguments. More... | |
| int | Qore::compare (number n1, number n2, number epsilon) |
| Compares numbers with a given epsilon. More... | |
| int | Qore::compare (float n1, float n2, float epsilon) |
| Compares numbers with a given epsilon. More... | |
| number | Qore::cos (number n) |
| Returns the cosine of the number in radians passed. More... | |
| float | Qore::cos (float f) |
| Returns the cosine of the number in radians passed. More... | |
| float | Qore::cos () |
| This function variant does nothing at all; it is only included for backwards-compatibility with qore prior to version 0.8.0 for functions that would ignore type errors in arguments. More... | |
| number | Qore::cosh (number n) |
| Returns the hyperbolic cosine of the given value. More... | |
| float | Qore::cosh (softfloat f) |
| Returns the hyperbolic cosine of the given value. More... | |
| float | Qore::cosh () |
| This function variant does nothing at all; it is only included for backwards-compatibility with qore prior to version 0.8.0 for functions that would ignore type errors in arguments. More... | |
| number | Qore::exp (number n) |
| Returns the value of e (the base of natural logarithms) raised to the power of the given number. More... | |
| float | Qore::exp (softfloat f) |
| Returns the value of e (the base of natural logarithms) raised to the power of the given number. More... | |
| float | Qore::exp () |
| This function variant does nothing at all; it is only included for backwards-compatibility with qore prior to version 0.8.0 for functions that would ignore type errors in arguments. More... | |
| number | Qore::exp2 (number n) |
| Returns the value of 2 raised to the power of the given number. More... | |
| float | Qore::exp2 (softfloat f) |
| Returns the value of 2 raised to the power of the given number. More... | |
| float | Qore::exp2 () |
| This function variant does nothing at all; it is only included for backwards-compatibility with qore prior to version 0.8.0 for functions that would ignore type errors in arguments. More... | |
| number | Qore::expm1 (number n) |
| Returns the value of e (the base of natural logarithms) raised to the power of the given number - 1. More... | |
| float | Qore::expm1 (softfloat f) |
| Returns the value of e (the base of natural logarithms) raised to the power of the given number - 1. More... | |
| float | Qore::expm1 () |
| This function variant does nothing at all; it is only included for backwards-compatibility with qore prior to version 0.8.0 for functions that would ignore type errors in arguments. More... | |
| int | Qore::floor (int num, int prec=0) |
| Returns the largest multiple of -prec-th power of 10 that is less than or equal to num. (Thus, for non-negative prec just returns num). More... | |
| float | Qore::floor (softfloat f, int prec=0) |
| Returns the largest multiple of -prec-th power of 10 that is less than or equal to num. More... | |
| number | Qore::floor (number num, int prec=0) |
| Returns the largest multiple of -prec-th power of 10 that is less than or equal to num. More... | |
| float | Qore::floor () |
| This function variant does nothing at all; it is only included for backwards-compatibility with qore prior to version 0.8.0 for functions that would ignore type errors in arguments. More... | |
| number | Qore::hypot (number x, number y) |
| Returns the length of the hypotenuse of a right-angle triangle with sides given as the two arguments. More... | |
| float | Qore::hypot (softfloat x, softfloat y) |
| Returns the length of the hypotenuse of a right-angle triangle with sides given as the two arguments. More... | |
| float | Qore::hypot () |
| This function variant does nothing at all; it is only included for backwards-compatibility with qore prior to version 0.8.0 for functions that would ignore type errors in arguments. More... | |
| number | Qore::log10 (number n) |
| Returns the base 10 logarithm of the given number. More... | |
| float | Qore::log10 (softfloat f) |
| Returns the base 10 logarithm of the given number. More... | |
| float | Qore::log10 () |
| This function variant does nothing at all; it is only included for backwards-compatibility with qore prior to version 0.8.0 for functions that would ignore type errors in arguments. More... | |
| number | Qore::log1p (number n) |
| Returns the natural logarithm of 1 + the given number. More... | |
| float | Qore::log1p (softfloat f) |
| Returns the natural logarithm of 1 + the given number. More... | |
| float | Qore::log1p () |
| This function variant does nothing at all; it is only included for backwards-compatibility with qore prior to version 0.8.0 for functions that would ignore type errors in arguments. More... | |
| float | Qore::logb (softfloat f) |
| Returns the exponent of the given number. More... | |
| float | Qore::logb () |
| This function variant does nothing at all; it is only included for backwards-compatibility with qore prior to version 0.8.0 for functions that would ignore type errors in arguments. More... | |
| number | Qore::nlog (number n) |
| Returns the natural logarithm of the given value. More... | |
| float | Qore::nlog (softfloat f) |
| Returns the natural logarithm of the given value. More... | |
| float | Qore::nlog () |
| This function variant does nothing at all; it is only included for backwards-compatibility with qore prior to version 0.8.0 for functions that would ignore type errors in arguments. More... | |
| number | Qore::pow (number x, number y) |
| Returns a number raised to the power of another number. More... | |
| float | Qore::pow (softfloat x=0.0, softfloat y=0.0) |
| Returns a number raised to the power of another number. More... | |
| int | Qore::round (softint num, int prec=0) |
| Returns the multiple of -prec-th power of 10 that is closest to num (numbers halfway between two such powers of 10 are rounded away from zero). (So, for non-negative prec just returns num). More... | |
| float | Qore::round (softfloat num, int prec=0) |
| Returns the multiple of -prec-th power of 10 that is closest to num (numbers halfway between two such powers of 10 are rounded away from zero). More... | |
| number | Qore::round (number num, int prec=0) |
| Returns the multiple of -prec-th power of 10 that is closest to num (numbers halfway between two such powers of 10 are rounded away from zero). More... | |
| float | Qore::round () |
| This function variant does nothing at all; it is only included for backwards-compatibility with qore prior to version 0.8.0 for functions that would ignore type errors in arguments. More... | |
| number | Qore::sin (number n) |
| Returns the sine of the number in radians passed. More... | |
| float | Qore::sin (softfloat f) |
| Returns the sine of the number in radians passed. More... | |
| float | Qore::sin () |
| This function variant does nothing at all; it is only included for backwards-compatibility with qore prior to version 0.8.0 for functions that would ignore type errors in arguments. More... | |
| number | Qore::sinh (number n) |
| Returns the hyperbolic sine of the given value. More... | |
| float | Qore::sinh (softfloat f) |
| Returns the hyperbolic sine of the given value. More... | |
| float | Qore::sinh () |
| This function variant does nothing at all; it is only included for backwards-compatibility with qore prior to version 0.8.0 for functions that would ignore type errors in arguments. More... | |
| number | Qore::sqrt (number n) |
| Returns the square root of the number passed. More... | |
| float | Qore::sqrt (softfloat f) |
| Returns the square root of the number passed. More... | |
| float | Qore::sqrt () |
| This function variant does nothing at all; it is only included for backwards-compatibility with qore prior to version 0.8.0 for functions that would ignore type errors in arguments. More... | |
| number | Qore::tan (number n) |
| Returns the tangent of the number in radians passed. More... | |
| float | Qore::tan (softfloat f) |
| Returns the tangent of the number in radians passed. More... | |
| float | Qore::tan () |
| This function variant does nothing at all; it is only included for backwards-compatibility with qore prior to version 0.8.0 for functions that would ignore type errors in arguments. More... | |
| number | Qore::tanh (number n) |
| Returns the hyperbolic tangent of the given value. More... | |
| float | Qore::tanh (softfloat f) |
| Returns the hyperbolic tangent of the given value. More... | |
| float | Qore::tanh () |
| This function variant does nothing at all; it is only included for backwards-compatibility with qore prior to version 0.8.0 for functions that would ignore type errors in arguments. More... | |
Math functions
| float Qore::abs | ( | ) |
This function variant does nothing at all; it is only included for backwards-compatibility with qore prior to version 0.8.0 for functions that would ignore type errors in arguments.
Returns the absolute value of the argument passed.
| i | the value to process |
Returns the absolute value of the argument passed.
| n | the value to process |
| float Qore::abs | ( | softfloat | f | ) |
Returns the absolute value of the argument passed.
| f | the value to process |
Returns the value in radians of the arc cosine of the given value.
| n | the cosine value to process |
| float Qore::acos | ( | softfloat | f | ) |
Returns the value in radians of the arc cosine of the given value.
| f | the cosine value to process |
| float Qore::asin | ( | ) |
This function variant does nothing at all; it is only included for backwards-compatibility with qore prior to version 0.8.0 for functions that would ignore type errors in arguments.
Returns the value in radians of the arc sine of the given value.
| n | the sine value to process |
| float Qore::asin | ( | softfloat | f | ) |
Returns the value in radians of the arc sine of the given value.
| f | the sine value to process |
| float Qore::atan | ( | ) |
This function variant does nothing at all; it is only included for backwards-compatibility with qore prior to version 0.8.0 for functions that would ignore type errors in arguments.
Returns the value in radians of the arc tangent of the given value.
| n | the tangent value to process |
| float Qore::atan | ( | softfloat | f | ) |
Returns the value in radians of the arc tangent of the given value.
| f | the tangent value to process |
| float Qore::atan2 | ( | ) |
This function variant does nothing at all; it is only included for backwards-compatibility with qore prior to version 0.8.0 for functions that would ignore type errors in arguments.
Returns the principal value of the arc tangent of y/x, using the signs of the two arguments to determine the quadrant of the result.
| y | the y value for the function |
| x | the x value for the function |
| float Qore::atan2 | ( | softfloat | y, |
| softfloat | x | ||
| ) |
Returns the principal value of the arc tangent of y/x, using the signs of the two arguments to determine the quadrant of the result.
| y | the y value for the function |
| x | the x value for the function |
| float Qore::cbrt | ( | ) |
This function variant does nothing at all; it is only included for backwards-compatibility with qore prior to version 0.8.0 for functions that would ignore type errors in arguments.
Returns the cube root of the number passed.
| n | the value to process |
| float Qore::cbrt | ( | softfloat | f | ) |
Returns the cube root of the number passed.
| f | the value to process |
| float Qore::ceil | ( | ) |
This function variant does nothing at all; it is only included for backwards-compatibility with qore prior to version 0.8.0 for functions that would ignore type errors in arguments.
Returns the smallest multiple of -prec-th power of 10 that is greater than or equal to num. (Thus, for non-negative prec just returns num).
| num | an integer number to process (to round upwards) |
| prec | precision |
Returns the smallest multiple of -prec-th power of 10 that is greater than or equal to num.
| num | the number to process (to round upwards) |
| prec | precision |
Returns the smallest multiple of -prec-th power of 10 that is greater than or equal to num.
| num | the number to process (to round upwards) |
| prec | precision |
Compares numbers with a given epsilon.
| n1 | the first number |
| n2 | the second number |
| epsilon | the maximum difference in the numbers under which they are considered equal |
Compares numbers with a given epsilon.
| n1 | the first number |
| n2 | the second number |
| epsilon | the maximum difference in the numbers under which they are considered equal |
| float Qore::cos | ( | ) |
This function variant does nothing at all; it is only included for backwards-compatibility with qore prior to version 0.8.0 for functions that would ignore type errors in arguments.
Returns the cosine of the number in radians passed.
| f | the angle in radians |
Returns the cosine of the number in radians passed.
| n | the angle in radians |
| float Qore::cosh | ( | ) |
This function variant does nothing at all; it is only included for backwards-compatibility with qore prior to version 0.8.0 for functions that would ignore type errors in arguments.
Returns the hyperbolic cosine of the given value.
| n | the value to process |
| float Qore::cosh | ( | softfloat | f | ) |
Returns the hyperbolic cosine of the given value.
| f | the value to process |
| float Qore::exp | ( | ) |
This function variant does nothing at all; it is only included for backwards-compatibility with qore prior to version 0.8.0 for functions that would ignore type errors in arguments.
Returns the value of e (the base of natural logarithms) raised to the power of the given number.
| n | the value to process |
| float Qore::exp | ( | softfloat | f | ) |
Returns the value of e (the base of natural logarithms) raised to the power of the given number.
| f | the value to process |
| float Qore::exp2 | ( | ) |
This function variant does nothing at all; it is only included for backwards-compatibility with qore prior to version 0.8.0 for functions that would ignore type errors in arguments.
Returns the value of 2 raised to the power of the given number.
| n | the value to process |
| float Qore::exp2 | ( | softfloat | f | ) |
Returns the value of 2 raised to the power of the given number.
| f | the value to process |
| float Qore::expm1 | ( | ) |
This function variant does nothing at all; it is only included for backwards-compatibility with qore prior to version 0.8.0 for functions that would ignore type errors in arguments.
Returns the value of e (the base of natural logarithms) raised to the power of the given number - 1.
| n | the value to process |
| float Qore::expm1 | ( | softfloat | f | ) |
Returns the value of e (the base of natural logarithms) raised to the power of the given number - 1.
| f | the value to process |
| float Qore::floor | ( | ) |
This function variant does nothing at all; it is only included for backwards-compatibility with qore prior to version 0.8.0 for functions that would ignore type errors in arguments.
Returns the largest multiple of -prec-th power of 10 that is less than or equal to num. (Thus, for non-negative prec just returns num).
| num | an integer number to process (to round downwards) |
| prec | precision |
Returns the largest multiple of -prec-th power of 10 that is less than or equal to num.
| num | the number to process (to round downwards) |
| prec | precision |
Returns the largest multiple of -prec-th power of 10 that is less than or equal to num.
| f | the number to process (to round downwards) |
| prec | precision |
| float Qore::hypot | ( | ) |
This function variant does nothing at all; it is only included for backwards-compatibility with qore prior to version 0.8.0 for functions that would ignore type errors in arguments.
Returns the length of the hypotenuse of a right-angle triangle with sides given as the two arguments.
| x | the length of side x of the right-angle triangle |
| y | the length of side y of the right-angle triangle |
| float Qore::hypot | ( | softfloat | x, |
| softfloat | y | ||
| ) |
Returns the length of the hypotenuse of a right-angle triangle with sides given as the two arguments.
| x | the length of side x of the right-angle triangle |
| y | the length of side y of the right-angle triangle |
| float Qore::log10 | ( | ) |
This function variant does nothing at all; it is only included for backwards-compatibility with qore prior to version 0.8.0 for functions that would ignore type errors in arguments.
Returns the base 10 logarithm of the given number.
| n | the value to process |
| float Qore::log10 | ( | softfloat | f | ) |
Returns the base 10 logarithm of the given number.
| f | the value to process |
| float Qore::log1p | ( | ) |
This function variant does nothing at all; it is only included for backwards-compatibility with qore prior to version 0.8.0 for functions that would ignore type errors in arguments.
Returns the natural logarithm of 1 + the given number.
| n | the value to process |
| float Qore::log1p | ( | softfloat | f | ) |
Returns the natural logarithm of 1 + the given number.
| f | the value to process |
| float Qore::logb | ( | ) |
This function variant does nothing at all; it is only included for backwards-compatibility with qore prior to version 0.8.0 for functions that would ignore type errors in arguments.
| float Qore::logb | ( | softfloat | f | ) |
Returns the exponent of the given number.
| f | the value to process |
| float Qore::nlog | ( | ) |
This function variant does nothing at all; it is only included for backwards-compatibility with qore prior to version 0.8.0 for functions that would ignore type errors in arguments.
Returns the natural logarithm of the given value.
| n | the value to process |
| float Qore::nlog | ( | softfloat | f | ) |
Returns the natural logarithm of the given value.
| f | the value to process |
Returns a number raised to the power of another number.
| x | the number to raise to the power of y |
| y | the power to raise x to |
| DIVISION-BY-ZERO | in pow(x, y), if x = 0 then y must be a non-negative value |
| float Qore::pow | ( | softfloat | x = 0.0, |
| softfloat | y = 0.0 |
||
| ) |
Returns a number raised to the power of another number.
| x | the number to raise to the power of y |
| y | the power to raise x to |
| DIVISION-BY-ZERO | in pow(x, y), if x = 0 then y must be a non-negative value |
| INVALID-POW-ARGUMENTS | in pow(x, y), x cannot be negative when y is not an integer value |
| float Qore::round | ( | ) |
This function variant does nothing at all; it is only included for backwards-compatibility with qore prior to version 0.8.0 for functions that would ignore type errors in arguments.
Returns the multiple of -prec-th power of 10 that is closest to num (numbers halfway between two such powers of 10 are rounded away from zero).
| num | a number to round |
| prec | precision |
Returns the multiple of -prec-th power of 10 that is closest to num (numbers halfway between two such powers of 10 are rounded away from zero).
| num | a number to round |
| prec | precision |
Returns the multiple of -prec-th power of 10 that is closest to num (numbers halfway between two such powers of 10 are rounded away from zero). (So, for non-negative prec just returns num).
| num | an integer number to round |
| prec | precision |
| float Qore::sin | ( | ) |
This function variant does nothing at all; it is only included for backwards-compatibility with qore prior to version 0.8.0 for functions that would ignore type errors in arguments.
Returns the sine of the number in radians passed.
| n | the angle in radians |
| float Qore::sin | ( | softfloat | f | ) |
Returns the sine of the number in radians passed.
| f | the angle in radians |
| float Qore::sinh | ( | ) |
This function variant does nothing at all; it is only included for backwards-compatibility with qore prior to version 0.8.0 for functions that would ignore type errors in arguments.
Returns the hyperbolic sine of the given value.
| n | the value to process |
| float Qore::sinh | ( | softfloat | f | ) |
Returns the hyperbolic sine of the given value.
| f | the value to process |
| float Qore::sqrt | ( | ) |
This function variant does nothing at all; it is only included for backwards-compatibility with qore prior to version 0.8.0 for functions that would ignore type errors in arguments.
Returns the square root of the number passed.
| n | the value to process |
| float Qore::sqrt | ( | softfloat | f | ) |
Returns the square root of the number passed.
| f | the value to process |
| float Qore::tan | ( | ) |
This function variant does nothing at all; it is only included for backwards-compatibility with qore prior to version 0.8.0 for functions that would ignore type errors in arguments.
Returns the tangent of the number in radians passed.
| n | the angle in radians |
| float Qore::tan | ( | softfloat | f | ) |
Returns the tangent of the number in radians passed.
| f | the angle in radians |
| float Qore::tanh | ( | ) |
This function variant does nothing at all; it is only included for backwards-compatibility with qore prior to version 0.8.0 for functions that would ignore type errors in arguments.
Returns the hyperbolic tangent of the given value.
| n | the value to process |