| Qore Programming Language Reference Manual 1.0.8

ql_math.dox.h
1
3 namespace Qore {
7
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 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 round(softint num, int prec = 0);
837
839
860 float round(softfloat num, int prec = 0);
861
863
881 number round(number num, int prec = 0);
882
884
888 float round();
889
891
903 number sin(number n);
904
906
918 float sin(softfloat f);
919
921
925 float sin();
926
928
940 number sinh(number n);
941
943
955 float sinh(softfloat f);
956
958
962 float sinh();
963
965
977 number sqrt(number n);
978
980
992 float sqrt(softfloat f);
993
995
999 float sqrt();
1000
1002
1014 number tan(number n);
1015
1017
1029 float tan(softfloat f);
1030
1032
1036 float tan();
1037
1039
1051 number tanh(number n);
1052
1054
1066 float tanh(softfloat f);
1067
1069
1073 float tanh();
1074
1076 }
1077
1079 namespace Qore {
1083
1085
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 }
Qore::abs
int abs(int i)
Returns the absolute value of the argument passed.
Qore::tan
number tan(number n)
Returns the tangent of the number in radians passed.
Qore::exp
number exp(number n)
Returns the value of e (the base of natural logarithms) raised to the power of the given number...
Qore::MAXINT
const MAXINT
largest integer
Definition: ql_math.dox.h:1088
Qore::expm1
number expm1(number n)
Returns the value of e (the base of natural logarithms) raised to the power of the given number - 1...
Qore::hypot
number hypot(number x, number y)
Returns the length of the hypotenuse of a right-angle triangle with sides given as the two arguments...
Qore::number
number number(softnumber n)
Converts the argument to a number value.
Qore::asin
number asin(number n)
Returns the value in radians of the arc sine of the given value.
Qore::logb
float logb(softfloat f)
Returns the exponent of the given number.
Qore::exp2
number exp2(number n)
Returns the value of 2 raised to the power of the given number.
Qore::sqrt
number sqrt(number n)
Returns the square root of the number passed.
Qore::MININT
const MININT
smallest integer
Definition: ql_math.dox.h:1092
Qore::cosh
number cosh(number n)
Returns the hyperbolic cosine of the given value.
Qore::log1p
number log1p(number n)
Returns the natural logarithm of 1 + the given number.
Qore::log10
number log10(number n)
Returns the base 10 logarithm of the given number.
Qore::nlog
number nlog(number n)
Returns the natural logarithm of the given value.
Qore::sin
number sin(number n)
Returns the sine of the number in radians passed.
Qore::sinh
number sinh(number n)
Returns the hyperbolic sine of the given value.
Qore::atan2
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...
Qore::tanh
number tanh(number n)
Returns the hyperbolic tangent of the given value.
Qore::M_PI
const M_PI
PI (floating-point)
Definition: ql_math.dox.h:1094
Qore::acos
number acos(number n)
Returns the value in radians of the arc cosine of the given value.
Qore::cos
number cos(number n)
Returns the cosine of the number in radians passed.
Qore::M_PIn
const M_PIn
PI (arbitrary-precision numeric)
Definition: ql_math.dox.h:1098
Qore::ceil
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...
Qore::compare
int compare(number n1, number n2, number epsilon)
Compares numbers with a given epsilon.
Qore::cbrt
number cbrt(number n)
Returns the cube root of the number passed.
Qore::floor
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...
Qore
main Qore-language namespace
Definition: Pseudo_QC_All.dox.h:3
Qore::atan
number atan(number n)
Returns the value in radians of the arc tangent of the given value.
Qore::round
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...
Qore::pow
number pow(number x, number y)
Returns a number raised to the power of another number.