$darkmode
Qore Programming Language Reference Manual 1.14.0
ql_math.dox.h
1
3namespace Qore {
8
10
24int abs(int i);
25
27
42
44
58float abs(softfloat f);
59
61
65float abs();
66
68
81
83
95float acos(softfloat f);
96
98
111
113
125float asin(softfloat f);
126
128
132float asin();
133
135
148
150
162float atan(softfloat f);
163
165
169float atan();
170
172
186
188
201float atan2(softfloat y, softfloat x);
202
204
208float atan2();
209
211
224
226
238float cbrt(softfloat f);
239
241
245float cbrt();
246
248
266int ceil(int num, int prec = 0);
267
269
289float ceil(softfloat num, int prec = 0);
290
292
312number ceil(number num, int prec = 0);
313
315
319float ceil();
320
322
334int compare(number n1, number n2, number epsilon);
335
337
349int compare(float n1, float n2, float epsilon);
350
352
365
367
379float cos(float f);
380
382
386float cos();
387
389
402
404
416float cosh(softfloat f);
417
419
423float cosh();
424
426
439
441
453float exp(softfloat f);
454
456
460float exp();
461
463
476
478
490float exp2(softfloat f);
491
493
497float exp2();
498
500
513
515
527float expm1(softfloat f);
528
530
534float expm1();
535
537
555int floor(int num, int prec = 0);
556
558
578float floor(softfloat f, int prec = 0);
579
581
601number floor(number num, int prec = 0);
602
604
608float floor();
609
611
625
627
640float hypot(softfloat x, softfloat y);
641
643
647float hypot();
648
650
663
665
677float log10(softfloat f);
678
680
684float log10();
685
687
700
702
714float log1p(softfloat f);
715
717
721float log1p();
722
724
736float logb(softfloat f);
737
739
743float logb();
744
746
759
761
773float nlog(softfloat f);
774
776
780float nlog();
781
783
799
801
817float pow(softfloat x = 0.0, softfloat y = 0.0);
818
820
836int round(softint num, int prec = 0);
837
839
860float round(softfloat num, int prec = 0);
861
863
881number round(number num, int prec = 0);
882
884
888float round();
889
891
904
906
918float sin(softfloat f);
919
921
925float sin();
926
928
941
943
955float sinh(softfloat f);
956
958
962float sinh();
963
965
978
980
992float sqrt(softfloat f);
993
995
999float sqrt();
1000
1002
1015
1017
1029float tan(softfloat f);
1030
1032
1036float tan();
1037
1039
1052
1054
1066float tanh(softfloat f);
1067
1069
1073float tanh();
1074
1076}
1077
1079namespace Qore {
1084
1086
1088 const MAXINT = LLONG_MAX;
1090
1092 const MININT = qore(QoreValue(-LLONG_MAX - 1));
1094 const M_PI = 3.14159265358979323846;
1096
1098 const M_PIn = qore(pi_number());
1100}
const M_PIn
PI (arbitrary-precision numeric)
Definition: ql_math.dox.h:1098
const MAXINT
largest integer
Definition: ql_math.dox.h:1088
const MININT
smallest integer
Definition: ql_math.dox.h:1092
const M_PI
PI (floating-point)
Definition: ql_math.dox.h:1094
number atan(number n)
Returns the value in radians of the arc tangent of the given value.
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.
int compare(number n1, number n2, number epsilon)
Compares numbers with a given epsilon.
number cos(number n)
Returns the cosine of the number in radians passed.
number sqrt(number n)
Returns the square root of the number passed.
int abs(int i)
Returns the absolute value of the argument passed.
number cbrt(number n)
Returns the cube root of the number passed.
number acos(number n)
Returns the value in radians of the arc cosine of the given value.
float logb(softfloat f)
Returns the exponent of the given number.
number tanh(number n)
Returns the hyperbolic tangent of the given value.
number tan(number n)
Returns the tangent of the number in radians passed.
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.
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 exp2(number n)
Returns the value of 2 raised to the power of the given number.
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 hypot(number x, number y)
Returns the length of the hypotenuse of a right-angle triangle with sides given as the two arguments.
number sinh(number n)
Returns the hyperbolic sine of the given value.
number sin(number n)
Returns the sine of the number in radians passed.
number expm1(number n)
Returns the value of e (the base of natural logarithms) raised to the power of the given number - 1.
number exp(number n)
Returns the value of e (the base of natural logarithms) raised to the power of the given number.
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....
number asin(number n)
Returns the value in radians of the arc 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 pow(number x, number y)
Returns a number raised to the power of another number.
number number(softnumber n)
Converts the argument to a number value.
Qore namespace.
Definition: QC_AbstractBidirectionalIterator.dox.h:2