Qore Programming Language Reference Manual  0.9.4
ql_math.dox.h
1 
3 namespace Qore {
9 
24 int abs(int i);
25 
27 
41 number abs(number n);
42 
44 
58 float abs(softfloat f);
59 
61 
65 float abs();
66 
68 
80 number acos(number n);
81 
83 
95 float acos(softfloat f);
96 
98 
110 number asin(number n);
111 
113 
125 float asin(softfloat f);
126 
128 
132 float asin();
133 
135 
147 number atan(number n);
148 
150 
162 float atan(softfloat f);
163 
165 
169 float atan();
170 
172 
185 number atan2(number y, number x);
186 
188 
201 float atan2(softfloat y, softfloat x);
202 
204 
208 float atan2();
209 
211 
223 number cbrt(number n);
224 
226 
238 float cbrt(softfloat f);
239 
241 
245 float cbrt();
246 
248 
266 int ceil(int num, int prec = 0);
267 
269 
289 float ceil(softfloat num, int prec = 0);
290 
292 
312 number ceil(number num, int prec = 0);
313 
315 
319 float ceil();
320 
322 
334 number cos(number n);
335 
337 
349 float cos(float f);
350 
352 
356 float cos();
357 
359 
371 number cosh(number n);
372 
374 
386 float cosh(softfloat f);
387 
389 
393 float cosh();
394 
396 
408 number exp(number n);
409 
411 
423 float exp(softfloat f);
424 
426 
430 float exp();
431 
433 
445 number exp2(number n);
446 
448 
460 float exp2(softfloat f);
461 
463 
467 float exp2();
468 
470 
482 number expm1(number n);
483 
485 
497 float expm1(softfloat f);
498 
500 
504 float expm1();
505 
507 
525 int floor(int num, int prec = 0);
526 
528 
548 float floor(softfloat f, int prec = 0);
549 
551 
571 number floor(number num, int prec = 0);
572 
574 
578 float floor();
579 
581 
594 number hypot(number x, number y);
595 
597 
610 float hypot(softfloat x, softfloat y);
611 
613 
617 float hypot();
618 
620 
632 number log10(number n);
633 
635 
647 float log10(softfloat f);
648 
650 
654 float log10();
655 
657 
669 number log1p(number n);
670 
672 
684 float log1p(softfloat f);
685 
687 
691 float log1p();
692 
694 
706 float logb(softfloat f);
707 
709 
713 float logb();
714 
716 
728 number nlog(number n);
729 
731 
743 float nlog(softfloat f);
744 
746 
750 float nlog();
751 
753 
768 number pow(number x, number y);
769 
771 
787 float pow(softfloat x = 0.0, softfloat y = 0.0);
788 
790 
806 int round(softint num, int prec = 0);
807 
809 
830 float round(softfloat num, int prec = 0);
831 
833 
851 number round(number num, int prec = 0);
852 
854 
858 float round();
859 
861 
873 number sin(number n);
874 
876 
888 float sin(softfloat f);
889 
891 
895 float sin();
896 
898 
910 number sinh(number n);
911 
913 
925 float sinh(softfloat f);
926 
928 
932 float sinh();
933 
935 
947 number sqrt(number n);
948 
950 
962 float sqrt(softfloat f);
963 
965 
969 float sqrt();
970 
972 
984 number tan(number n);
985 
987 
999 float tan(softfloat f);
1000 
1002 
1006 float tan();
1007 
1009 
1021 number tanh(number n);
1022 
1024 
1036 float tanh(softfloat f);
1037 
1039 
1043 float tanh();
1044 
1046 }
1047 
1049 namespace Qore {
1055 
1058  const MAXINT = LLONG_MAX;
1060 
1062  const MININT = qore(QoreValue(-LLONG_MAX - 1));
1064  const M_PI = 3.14159265358979323846;
1066 
1068  const M_PIn = qore(pi_number());
1070 }
int abs(int i)
Returns the absolute value of the argument passed.
number tan(number n)
Returns the tangent of the number in radians passed.
number exp(number n)
Returns the value of e (the base of natural logarithms) raised to the power of the given number.
const MAXINT
largest integer
Definition: ql_math.dox.h:1058
number expm1(number n)
Returns the value of e (the base of natural logarithms) raised to the power of the given number - 1.
number hypot(number x, number y)
Returns the length of the hypotenuse of a right-angle triangle with sides given as the two arguments.
number number(softnumber n)
Converts the argument to a number value.
number asin(number n)
Returns the value in radians of the arc sine of the given value.
float logb(softfloat f)
Returns the exponent of the given number.
number exp2(number n)
Returns the value of 2 raised to the power of the given number.
number sqrt(number n)
Returns the square root of the number passed.
const MININT
smallest integer
Definition: ql_math.dox.h:1062
number cosh(number n)
Returns the hyperbolic cosine of the given value.
number log1p(number n)
Returns the natural logarithm of 1 + the given number.
number log10(number n)
Returns the base 10 logarithm of the given number.
number nlog(number n)
Returns the natural logarithm of the given value.
number sin(number n)
Returns the sine of the number in radians passed.
number sinh(number n)
Returns the hyperbolic sine of the given value.
number atan2(number y, number x)
Returns the principal value of the arc tangent of y/x, using the signs of the two arguments to determ...
number tanh(number n)
Returns the hyperbolic tangent of the given value.
const M_PI
PI (floating-point)
Definition: ql_math.dox.h:1064
number acos(number n)
Returns the value in radians of the arc cosine of the given value.
number cos(number n)
Returns the cosine of the number in radians passed.
const M_PIn
PI (arbitrary-precision numeric)
Definition: ql_math.dox.h:1068
int ceil(int num, int prec=0)
Returns the smallest multiple of -prec-th power of 10 that is greater than or equal to num....
number cbrt(number n)
Returns the cube root of the number passed.
int floor(int num, int prec=0)
Returns the largest multiple of -prec-th power of 10 that is less than or equal to num....
main Qore-language namespace
Definition: Pseudo_QC_All.dox.h:3
number atan(number n)
Returns the value in radians of the arc tangent of the given value.
int 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...
number pow(number x, number y)
Returns a number raised to the power of another number.