| Qore Programming Language Reference Manual 2.2.0

Loading...
Searching...
No Matches
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
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 int compare(number n1, number n2, number epsilon);
335
337
349 int compare(float n1, float n2, float epsilon);
350
352
364 number cos(number n);
365
367
379 float cos(float f);
380
382
386 float cos();
387
389
401 number cosh(number n);
402
404
416 float cosh(softfloat f);
417
419
423 float cosh();
424
426
438 number exp(number n);
439
441
453 float exp(softfloat f);
454
456
460 float exp();
461
463
475 number exp2(number n);
476
478
490 float exp2(softfloat f);
491
493
497 float exp2();
498
500
512 number expm1(number n);
513
515
527 float expm1(softfloat f);
528
530
534 float expm1();
535
537
555 int floor(int num, int prec = 0);
556
558
578 float floor(softfloat f, int prec = 0);
579
581
601 number floor(number num, int prec = 0);
602
604
608 float floor();
609
611
624 number hypot(number x, number y);
625
627
640 float hypot(softfloat x, softfloat y);
641
643
647 float hypot();
648
650
662 number log10(number n);
663
665
677 float log10(softfloat f);
678
680
684 float log10();
685
687
699 number log1p(number n);
700
702
714 float log1p(softfloat f);
715
717
721 float log1p();
722
724
736 float logb(softfloat f);
737
739
743 float logb();
744
746
758 number nlog(number n);
759
761
773 float nlog(softfloat f);
774
776
780 float nlog();
781
783
798 number pow(number x, number y);
799
801
817 float pow(softfloat x = 0.0, softfloat y = 0.0);
818
820
836 int pow(int x = 0, int y = 0);
837
839
855 int round(softint num, int prec = 0);
856
858
879 float round(softfloat num, int prec = 0);
880
882
900 number round(number num, int prec = 0);
901
903
907 float round();
908
910
922 number sin(number n);
923
925
937 float sin(softfloat f);
938
940
944 float sin();
945
947
959 number sinh(number n);
960
962
974 float sinh(softfloat f);
975
977
981 float sinh();
982
984
996 number sqrt(number n);
997
999
1011 float sqrt(softfloat f);
1012
1014
1018 float sqrt();
1019
1021
1033 number tan(number n);
1034
1036
1048 float tan(softfloat f);
1049
1051
1055 float tan();
1056
1058
1070 number tanh(number n);
1071
1073
1085 float tanh(softfloat f);
1086
1088
1092 float tanh();
1093
1095}
1096
1098 namespace Qore {
1103
1105
1107 const MAXINT = LLONG_MAX;
1109
1111 const MININT = qore(QoreValue(-LLONG_MAX - 1));
1113 const M_PI = 3.14159265358979323846;
1115
1117 const M_PIn = qore(pi_number());
1119}
Qore::M_PIn
const M_PIn
PI (arbitrary-precision numeric)
Definition ql_math.dox.h:1117
Qore::MAXINT
const MAXINT
largest integer
Definition ql_math.dox.h:1107
Qore::MININT
const MININT
smallest integer
Definition ql_math.dox.h:1111
Qore::M_PI
const M_PI
PI (floating-point)
Definition ql_math.dox.h:1113
Qore::cos
float cos()
This function variant does nothing at all; it is only included for backwards-compatibility with qore ...
Qore::compare
int compare(number n1, number n2, number epsilon)
Compares numbers with a given epsilon.
Qore::cosh
float cosh()
This function variant does nothing at all; it is only included for backwards-compatibility with qore ...
Qore::hypot
float hypot()
This function variant does nothing at all; it is only included for backwards-compatibility with qore ...
Qore::tan
float tan()
This function variant does nothing at all; it is only included for backwards-compatibility with qore ...
Qore::exp2
float exp2()
This function variant does nothing at all; it is only included for backwards-compatibility with qore ...
Qore::expm1
float expm1()
This function variant does nothing at all; it is only included for backwards-compatibility with qore ...
Qore::acos
number acos(number n)
Returns the value in radians of the arc cosine of the given value.
Qore::cbrt
float cbrt()
This function variant does nothing at all; it is only included for backwards-compatibility with qore ...
Qore::sinh
float sinh()
This function variant does nothing at all; it is only included for backwards-compatibility with qore ...
Qore::asin
float asin()
This function variant does nothing at all; it is only included for backwards-compatibility with qore ...
Qore::abs
float abs()
This function variant does nothing at all; it is only included for backwards-compatibility with qore ...
Qore::log1p
float log1p()
This function variant does nothing at all; it is only included for backwards-compatibility with qore ...
Qore::tanh
float tanh()
This function variant does nothing at all; it is only included for backwards-compatibility with qore ...
Qore::sqrt
float sqrt()
This function variant does nothing at all; it is only included for backwards-compatibility with qore ...
Qore::log10
float log10()
This function variant does nothing at all; it is only included for backwards-compatibility with qore ...
Qore::atan
float atan()
This function variant does nothing at all; it is only included for backwards-compatibility with qore ...
Qore::logb
float logb()
This function variant does nothing at all; it is only included for backwards-compatibility with qore ...
Qore::floor
float floor()
This function variant does nothing at all; it is only included for backwards-compatibility with qore ...
Qore::sin
float sin()
This function variant does nothing at all; it is only included for backwards-compatibility with qore ...
Qore::nlog
float nlog()
This function variant does nothing at all; it is only included for backwards-compatibility with qore ...
Qore::atan2
float atan2()
This function variant does nothing at all; it is only included for backwards-compatibility with qore ...
Qore::ceil
float ceil()
This function variant does nothing at all; it is only included for backwards-compatibility with qore ...
Qore::exp
float exp()
This function variant does nothing at all; it is only included for backwards-compatibility with qore ...
Qore::round
float round()
This function variant does nothing at all; it is only included for backwards-compatibility with qore ...
Qore::pow
number pow(number x, number y)
Returns a number raised to the power of another number.
Qore::number
number number(softnumber n)
Converts the argument to a number value.
Qore
main Qore-language namespace
Definition Pseudo_QC_All.dox.h:3