Qore Programming Language Reference Manual 2.0.0
|
Functions | |
int | Qore::abs (int i) |
Returns the absolute value of the argument passed. | |
number | Qore::abs (number n) |
Returns the absolute value of the argument passed. | |
float | Qore::abs (softfloat f) |
Returns the absolute value of the argument passed. | |
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. | |
number | Qore::acos (number n) |
Returns the value in radians of the arc cosine of the given value. | |
float | Qore::acos (softfloat f) |
Returns the value in radians of the arc cosine of the given value. | |
number | Qore::asin (number n) |
Returns the value in radians of the arc sine of the given value. | |
float | Qore::asin (softfloat f) |
Returns the value in radians of the arc sine of the given value. | |
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. | |
number | Qore::atan (number n) |
Returns the value in radians of the arc tangent of the given value. | |
float | Qore::atan (softfloat f) |
Returns the value in radians of the arc tangent of the given value. | |
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. | |
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. | |
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. | |
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. | |
number | Qore::cbrt (number n) |
Returns the cube root of the number passed. | |
float | Qore::cbrt (softfloat f) |
Returns the cube root of the number passed. | |
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. | |
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). | |
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. | |
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. | |
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. | |
int | Qore::compare (number n1, number n2, number epsilon) |
Compares numbers with a given epsilon. | |
int | Qore::compare (float n1, float n2, float epsilon) |
Compares numbers with a given epsilon. | |
number | Qore::cos (number n) |
Returns the cosine of the number in radians passed. | |
float | Qore::cos (float f) |
Returns the cosine of the number in radians passed. | |
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. | |
number | Qore::cosh (number n) |
Returns the hyperbolic cosine of the given value. | |
float | Qore::cosh (softfloat f) |
Returns the hyperbolic cosine of the given value. | |
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. | |
number | Qore::exp (number n) |
Returns the value of e (the base of natural logarithms) raised to the power of the given number. | |
float | Qore::exp (softfloat f) |
Returns the value of e (the base of natural logarithms) raised to the power of the given number. | |
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. | |
number | Qore::exp2 (number n) |
Returns the value of 2 raised to the power of the given number. | |
float | Qore::exp2 (softfloat f) |
Returns the value of 2 raised to the power of the given number. | |
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. | |
number | Qore::expm1 (number n) |
Returns the value of e (the base of natural logarithms) raised to the power of the given number - 1. | |
float | Qore::expm1 (softfloat f) |
Returns the value of e (the base of natural logarithms) raised to the power of the given number - 1. | |
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. | |
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). | |
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. | |
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. | |
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. | |
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. | |
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. | |
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. | |
number | Qore::log10 (number n) |
Returns the base 10 logarithm of the given number. | |
float | Qore::log10 (softfloat f) |
Returns the base 10 logarithm of the given number. | |
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. | |
number | Qore::log1p (number n) |
Returns the natural logarithm of 1 + the given number. | |
float | Qore::log1p (softfloat f) |
Returns the natural logarithm of 1 + the given number. | |
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. | |
float | Qore::logb (softfloat f) |
Returns the exponent of the given number. | |
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. | |
number | Qore::nlog (number n) |
Returns the natural logarithm of the given value. | |
float | Qore::nlog (softfloat f) |
Returns the natural logarithm of the given value. | |
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. | |
number | Qore::pow (number x, number y) |
Returns a number raised to the power of another number. | |
float | Qore::pow (softfloat x=0.0, softfloat y=0.0) |
Returns a number raised to the power of another number. | |
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). | |
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). | |
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). | |
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. | |
number | Qore::sin (number n) |
Returns the sine of the number in radians passed. | |
float | Qore::sin (softfloat f) |
Returns the sine of the number in radians passed. | |
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. | |
number | Qore::sinh (number n) |
Returns the hyperbolic sine of the given value. | |
float | Qore::sinh (softfloat f) |
Returns the hyperbolic sine of the given value. | |
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. | |
number | Qore::sqrt (number n) |
Returns the square root of the number passed. | |
float | Qore::sqrt (softfloat f) |
Returns the square root of the number passed. | |
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. | |
number | Qore::tan (number n) |
Returns the tangent of the number in radians passed. | |
float | Qore::tan (softfloat f) |
Returns the tangent of the number in radians passed. | |
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. | |
number | Qore::tanh (number n) |
Returns the hyperbolic tangent of the given value. | |
float | Qore::tanh (softfloat f) |
Returns the hyperbolic tangent of the given value. | |
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. | |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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.
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 |
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 |
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 |
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 |
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 |
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 |
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 |