Andrei Alexandrescu
3f2b8c12ea
64-bit compatibility work
2010-08-22 20:55:22 +00:00
Andrei Alexandrescu
cca7ba835a
versioned out failing asserts on OSX
2010-08-17 15:11:26 +00:00
Shin Fujishiro
caa561b3b2
std.math: ddoc fix
2010-08-16 18:57:05 +00:00
Lars T. Kyllingstad
4de804f614
Applied pure and nothrow to std.complex. To make this work, I had to add a few nothrows to std.math.pow() as well.
2010-08-13 09:58:13 +00:00
David Simcha
d802acc381
Fix lying comment.
2010-08-12 02:47:21 +00:00
David Simcha
0c8d66a4aa
Bug 4455: Taking the sqrt of an integer shouldn't require an explicit cast.
2010-08-12 02:43:52 +00:00
David Simcha
06c166e10a
Fix several related bugs in std.math.pow(), massively improve unittests.
2010-08-12 02:00:17 +00:00
Lars T. Kyllingstad
032d9dab2d
Fixed bug 3202: std.math.pow cause dead loop
2010-06-22 07:12:24 +00:00
Don Clugston
11d92705e4
B sting. I think this is the last one.
2010-06-21 20:24:25 +00:00
Walter Bright
748293a341
add @safe to builtin functions
2010-05-25 04:03:09 +00:00
Shin Fujishiro
4e2d8f30fd
Added FreeBSD code.
2010-05-17 03:02:16 +00:00
Don Clugston
6e3b8dc2b1
Improved comments.
2010-03-29 15:37:47 +00:00
Don Clugston
3a19169d27
Fix 4023: std.math.hypot() returns infinity when either argument is zero
2010-03-29 08:03:28 +00:00
Don Clugston
3b75480359
Support pow(int, int) in preparation for improvements to ^^.
2009-12-21 09:30:40 +00:00
Walter Bright
d340dab9f3
inout to ref
2009-12-19 07:46:41 +00:00
Don Clugston
a8cb0ed7b0
Added asm versions of atan2, asin, acos, atan -- closes bug 2664.
...
Inverse trig functions are now pure nothrow.
Added FloatControl, IeeeFlags for enabling floating-point exceptions.
Added unittests for exp().
2009-11-30 10:30:46 +00:00
Walter Bright
f8b01a88a5
fixe makefile for 64 bits
2009-11-13 02:31:11 +00:00
Don Clugston
1eea3f3895
Removed all references to float.min, replaced with float.min_normal.
2009-11-06 16:02:45 +00:00
Andrei Alexandrescu
dbd4e31f19
Minor optimization in decode
2009-10-27 03:29:55 +00:00
Don Clugston
c7d21f0233
Fix most of the formatting issues with std.math.
2009-10-01 00:56:27 +00:00
Sean Kelly
747f3cf1e4
Changed Phobos to use the Boost license. Currently, all public domain modules and all licensed modules by Walter, Andrei, Bartosz, and Don have been changed to use this license (excepting std.c, for the moment). Ideally, all Phobos modules will eventually be distributed under this license, which means obtaining permission from a few more authors, deleting, or rewriting some modules.
...
Removed std.openrj.
2009-09-16 18:19:51 +00:00
Andrei Alexandrescu
0c142994d9
See changelog - bunch of bug fixes and a couple additions for release 2.032
2009-08-31 19:46:33 +00:00
Andrei Alexandrescu
511fe83802
replaced std.c with core.stdc; improved approxEqual to work with ranges, not only numbers or arrays
2009-07-11 19:02:05 +00:00
Walter Bright
3a3130afa9
last minute fixes for 2.031
2009-07-06 17:32:48 +00:00
Andrei Alexandrescu
14bffe780b
minor
2009-07-04 07:13:50 +00:00
Don Clugston
cf6fcdf625
Fix for bugzilla 3040 (if that actually is a bug).
2009-06-01 05:55:46 +00:00
Walter Bright
dbb18c7e66
bugzilla 3016
2009-05-22 23:58:31 +00:00
Don Clugston
cf05d1909b
Fix exp() so that it won't break when issue #2942 is fixed.
2009-05-11 08:46:51 +00:00
Andrei Alexandrescu
40e9003856
isNaN returns bool
2009-04-29 22:07:08 +00:00
Don Clugston
02bfae247a
Implemented log1p using the new intrinsics. All log functions and atanh, acosh, and asinh are now pure nothrow.
2009-04-14 06:51:52 +00:00
Andrei Alexandrescu
d929e706b0
fixed pow
2009-04-11 20:39:24 +00:00
Walter Bright
dd89bdf4fa
add yl2x
2009-04-09 18:40:31 +00:00
Don Clugston
935dbdf282
double/float overloads in std.math are now pure nothrow.
...
(required fix for bug2756).
2009-03-30 08:15:02 +00:00
Brad Roberts
22c437c8b3
Apply attachment from bug 2570 from Aziz to cleanup some bad html in ddoc comments
2009-03-29 06:32:11 +00:00
Don Clugston
5ae67f23ac
* Disabled pure nothrow for double & float functions, because of bug 2756
...
* More extensive unittests for nextUp.
Trivial tidying up:
* Changed all references to std.math.isXXX to the new names instead of the aliased old names.
* Moved license to end of std.math.
2009-03-24 08:49:38 +00:00
Don Clugston
47ddb78118
* All math functions are now pure nothrow, except those which call the C library. (This assumes that the 'pure float' problem will be solved, perhaps by one of the two methods I've proposed).
...
* New implementation of std.math.hypot() which is faster, and now works correctly for subnormal numbers.
2009-03-18 09:19:02 +00:00
Don Clugston
eed37a809b
Correct a bug in frexp() for the GDC doubledouble case. (Copied from Tango).
2009-03-09 15:35:52 +00:00
Don Clugston
5fc7dab498
Fixes the failing unit tests.
2009-03-05 08:04:35 +00:00
Walter Bright
095813650f
comment out unittests
2009-03-05 06:45:47 +00:00
Walter Bright
ce0dc8aa42
fix unittest compile fail
2009-03-04 19:19:59 +00:00
Don Clugston
a9ee82e9fc
Added comments, fixed a broken unit test, simplify frexp().
2009-02-27 08:05:13 +00:00
Don Clugston
eb61deb82e
Tango compatibility.
...
* IEEE754 names for isNaN, isFinite, isNormal, isSubnormal, isInfinity. Aliases for the old names have been retained.
* The non-functional nan(char[]) is replaced with NaN, getNaNpayload.
* Restored float, double versions of the trig & exp functions
* finally got rid of the private mfeq() function
2009-02-26 19:44:09 +00:00
Don Clugston
cde0563c68
Added NaN payload functions (from Tango).
...
Removed std.math.nan, which was a no-op.
2009-02-26 10:02:43 +00:00
Don Clugston
99e533ab68
Faster complex trig functions. Marked math as a System module.
2009-02-26 08:13:21 +00:00
Walter Bright
18404fdeea
add purity and nothrow
2009-02-24 11:02:48 +00:00
Don Clugston
2d098cbc5e
Removed the last bits of HTML from the ddoc comments.
2009-02-24 08:13:34 +00:00
Don Clugston
02b2dc3fe5
Replaced html with ddoc tags
2009-02-24 07:55:57 +00:00
Don Clugston
f76e9c5ff1
* exp2() and expm1() also 3 times faster.
2009-02-23 20:05:01 +00:00
Don Clugston
cabeb2fac6
* exp() is now 3 times faster.
...
* sinh, cosh, tanh now use D implementations rather than the C standard library.
2009-02-20 14:17:21 +00:00
Walter Bright
295a1633b7
fails unit tests
2009-02-14 17:47:38 +00:00