sergei
|
141b2f7066
* arcsin and arccos: improve accuracy at small arguments by replacing sqr(1-x*x) with sqr((1-x)*(1+x)).
|
11 years ago |
sergei
|
636736dda6
* log2() and log10(): replaced division by ln(base) with multiplication by reciprocal constant, this executes faster and somehow provides slightly better accuracy.
|
11 years ago |
sergei
|
c7213b7ff1
- Math unit: don't raise EInvalidArgument exception in general math functions, this is Delphi-compatible. Delphi raises EInvalidArgument only in statistical/financial functions; general math functions execute code which causes EInvalidOp raised by hardware (or low-level system routines).
|
11 years ago |
sergei
|
5206584805
* lnxp1 function fixed to be accurate near zero argument values, using code from AMath library by Wolfgang Ehrhardt.
|
11 years ago |
sergei
|
437b3755d1
* math.hypot(): factor larger argument out of expression in order to avoid loss of precision.
|
11 years ago |
sergei
|
d981861433
* IsNan(single): can be written much simpler, because representation of single casted to longint is the same on big-endian and little-endian targets.
|
12 years ago |
florian
|
1da4c0c3ce
* SinCos overloads added, resolves #22663
|
13 years ago |
florian
|
2677187b2f
* inline several math methods (though a lot won't be inlined yet because they take open array parameters), resolves #21040
|
13 years ago |
marco
|
ae1ece93e5
* fix for #21199, changing epsilon to 0.0 instead of 0 helps overload selection of the
|
13 years ago |
florian
|
d7f7a9bb76
* patch by Alexander Shishkin to clean up $ifopt usage by $push/$pop, resolves #20346
|
14 years ago |
Jonas Maebe
|
0a88009059
* comment and formatting fixes by Christian Budde (mantis #19919)
|
14 years ago |
florian
|
37b8b791d5
* overloaded versions of IsNan, resolves #14351
|
14 years ago |
Jonas Maebe
|
60f8b7fcb1
+ int64 version of randomrange() (mantis #16108)
|
15 years ago |
florian
|
0c153a46df
* math.power/intpower(0,0) return 1, this is as recommended in IEEE 754
|
15 years ago |
florian
|
31e2f16484
resolves #15453:
|
15 years ago |
florian
|
a14db25c64
+ procedure DivMod(Dividend: Integer; Divisor: integer; var Result, Remainder: integer); and procedure DivMod(Dividend: cardinal; Divisor: cardinal; var Result, Remainder: cardinal);, resolves #14286
|
16 years ago |
marco
|
2c82c6a747
* several functions are now marked with overload;
|
16 years ago |
florian
|
855a65a061
+ RandomRange
|
16 years ago |
Jonas Maebe
|
1c2d2ae481
* fixed SimpleRoundTo() function (mantis #10159)
|
16 years ago |
marco
|
f0c236b992
* Made overloading situation ifthen more Delphi compatible. Mantis #12662
|
16 years ago |
Almindor
|
3588a9d02c
* inline the ** operators since they just call functions directly
|
17 years ago |
michael
|
c98d7325f6
* GOTO ON in source.
|
17 years ago |
micha
|
83b7f81f81
+ add no-fpu support to compiler/rtl for powerpc-linux (-Cfnone)
|
17 years ago |
Jonas Maebe
|
edffeac316
* declare math.pinteger as an alias of objpas.pinteger to avoid type
|
17 years ago |
marco
|
c6e2d72e3c
* D7 compat, neginfinity (bug 10490)
|
17 years ago |
michael
|
cb9608c149
* Replaced suspected copyright infringement of MomentSkewKurtosis with clean-room implementation by Vincent Snijders
|
17 years ago |
yury
|
1807613f88
* Made NaN = 0.0/0.0 for arm-linux. It is calculated as Nan on Florian's arm-linux box. ln(-1.0) is calculated as -Inf on arm-linux and x86. It fixes bug #9132.
|
18 years ago |
daniel
|
b293a9bdd4
- Revert patch by Alex Raine.
|
18 years ago |
daniel
|
14f2edc56e
+ Assembler implementation of min/max by Alex Rayne.
|
18 years ago |
michael
|
25a29c1159
* Undid revision 6462
|
18 years ago |