marco
|
a5487d327f
* intmean, patch by Bart. Bug #32661
|
7 years ago |
michael
|
bb79ab787e
* Fix FULLVERSION check for randomfrom
|
8 years ago |
michael
|
162b938409
* Patch from Thaddy De Koning to add generic RandomFrom
|
8 years ago |
nickysn
|
958d74e41c
- removed the "else" in math.EnsureRange, because this way the compiler
|
8 years ago |
florian
|
69f41a776e
* jump-free Ceil*/Floor* implementations
|
8 years ago |
michael
|
c3e50a36cc
* Move fpdoc block after uses clause
|
8 years ago |
Károly Balogh
|
6dff85df58
math: replace trunc() with int() in some functions working with floats to avoid some unnecessary int64->double conversions, as trunc returns an integer, which then has to be converted back to float
|
8 years ago |
Károly Balogh
|
5c87e870fd
tabs to spaces fix, no functional changes
|
8 years ago |
michael
|
18f2592433
* float version of modulo (Patch from Thaddy De koning, bug ID #30744)
|
8 years ago |
michael
|
364abc3c07
* Author retracted erf/erfc functions due to copyright issues
|
9 years ago |
michael
|
3da0f82995
* Add error functions erf/erfc, bug ID #29740
|
9 years ago |
sergei
|
161f812113
* Explicitly typecast (-longint) to longint, otherwise it becomes an int64 on 64-bit targets, causing wrong result of sign(longint). Mantis #29649.
|
9 years ago |
sergei
|
9b84581f4c
+ function copysign(x,y), calculates abs(x)*sign(y), private for unit math (not in interface).
|
9 years ago |
sergei
|
a4ed9f3b54
* Improved sign(x) functions to be branchless in most cases. Resolves #14206.
|
9 years ago |
michael
|
88957c62e3
* Add Ceil64 and Floor64, patch from Bart Broersma (bug ID 28370)
|
9 years ago |
michael
|
b9fa0d0934
* Mimic minfloat for fpdoc
|
10 years ago |
michael
|
bb7e0f645f
* Fake some types when running under FPDOC
|
10 years ago |
marco
|
3a7cde492e
* finance functions by wp, mantis #26459
|
11 years ago |
sergei
|
f767d9017c
* Fixed sin(-0.0) to return -0.0 (was returning 0.0)
|
11 years ago |
sergei
|
57c762c8d2
+ Inserted license header for AMath routines.
|
11 years ago |
sergei
|
bd58adfcc9
+ Added credits for functions reused from AMath/DAMath libraries.
|
11 years ago |
michael
|
d45ced0221
* Added DegNormalize
|
11 years ago |
sergei
|
94a045aa3d
* Moved declarations of TFPURoundingMode,TFPUExceptionMask and TFPUPrecisionMode to System unit. Declarations in Math unit changed to aliases.
|
11 years ago |
sergei
|
0255eb880e
- Removed mathuh.inc files which are identical for all targets (except m68k, see below), their contents moved into math.pp.
|
11 years ago |
nickysn
|
19a39cde4a
* 16-bit objpas.integer type fixes in Math.DivMod
|
11 years ago |
nickysn
|
4eb9043ac7
* x87 optimized version of math.log2() for i8086, i386 and x86_64
|
11 years ago |
nickysn
|
90b69184f1
* use a {$if defined()} sequence, instead of nested ifdefs for selecting the
|
11 years ago |
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 |