Qore Programming Language Reference Manual  0.8.9
 All Classes Namespaces Functions Variables Groups Pages
ql_math.dox.h
1 
3 namespace Qore {
8 
10 
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 
262 number ceil(number n);
263 
265 
279 float ceil(softfloat f);
280 
282 
286 float ceil();
287 
289 
301 number cos(number n);
302 
304 
316 float cos(float f);
317 
319 
323 float cos();
324 
326 
338 number cosh(number n);
339 
341 
353 float cosh(softfloat f);
354 
356 
360 float cosh();
361 
363 
375 number exp(number n);
376 
378 
390 float exp(softfloat f);
391 
393 
397 float exp();
398 
400 
412 number exp2(number n);
413 
415 
427 float exp2(softfloat f);
428 
430 
434 float exp2();
435 
437 
449 number expm1(number n);
450 
452 
464 float expm1(softfloat f);
465 
467 
471 float expm1();
472 
474 
486 number floor(softnumber n);
487 
489 
501 float floor(softfloat f);
502 
504 
508 float floor();
509 
511 
524 number hypot(number x, number y);
525 
527 
540 float hypot(softfloat x, softfloat y);
541 
543 
547 float hypot();
548 
550 
562 number log10(number n);
563 
565 
577 float log10(softfloat f);
578 
580 
584 float log10();
585 
587 
599 number log1p(number n);
600 
602 
614 float log1p(softfloat f);
615 
617 
621 float log1p();
622 
624 
636 float logb(softfloat f);
637 
639 
643 float logb();
644 
646 
658 number nlog(number n);
659 
661 
673 float nlog(softfloat f);
674 
676 
680 float nlog();
681 
683 
698 number pow(number x, number y);
699 
701 
717 float pow(softfloat x = 0.0, softfloat y = 0.0);
718 
720 
732 number round(number n);
733 
735 
750 float round(softfloat f);
751 
753 
757 float round();
758 
760 
772 number sin(number n);
773 
775 
787 float sin(softfloat f);
788 
790 
794 float sin();
795 
797 
809 number sinh(number n);
810 
812 
824 float sinh(softfloat f);
825 
827 
831 float sinh();
832 
834 
846 number sqrt(number n);
847 
849 
861 float sqrt(softfloat f);
862 
864 
868 float sqrt();
869 
871 
883 number tan(number n);
884 
886 
898 float tan(softfloat f);
899 
901 
905 float tan();
906 
908 
920 number tanh(number n);
921 
923 
935 float tanh(softfloat f);
936 
938 
942 float tanh();
943 
945 };
946 
948 namespace Qore {
953 
955 
957  const MAXINT = LLONG_MAX;
959 
961  const MININT = qore(new QoreBigIntNode(-LLONG_MAX - 1));
963  const M_PI = 3.14159265358979323846;
965 
967  const M_PIn = qore(pi_number());
969 };
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:957
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 round(number n)
Returns a number equal to the closest integer to the argument passed; numbers halfway between two int...
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 floor(softnumber n)
Returns a number equal to the largest integral value less than or equal to the argument passed...
number sqrt(number n)
Returns the square root of the number passed.
const MININT
smallest integer
Definition: ql_math.dox.h:961
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 ceil(number n)
Returns a number equal to the smallest integral value greater than or equal to the argument passed...
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:963
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:967
number cbrt(number n)
Returns the cube root of the number passed.
number atan(number n)
Returns the value in radians of the arc tangent of the given value.
number pow(number x, number y)
Returns a number raised to the power of another number.