Commit graph

499 commits

Author SHA1 Message Date
Walter Bright
b1042a219e bugzilla 2269 2008-08-07 20:25:08 +00:00
Andrei Alexandrescu
fe4af2bd9f $(LI In $(B std.math), replaced a bunch of $(B const)s with $(B enum)s) 2008-07-08 03:24:51 +00:00
Don Clugston
40f2786ef9 Fixes for bugzilla #2092 2008-05-28 07:08:41 +00:00
Don Clugston
4439653a58 Bugfix: the new pow(x,n) was wrong for int.max<n<=uint.max 2008-05-28 06:49:27 +00:00
Andrei Alexandrescu
1ae5300f52 * std.algorithm: Changed the map() function so that it deduces the return type
* std.contracts: Added file and line information to enforce. Added errnoEnforce that reads and formats a message according to errno. Added corresponding ErrnoException class.

* std.encoding: For now commented out std.encoding.to. 

* std.file: Fixed bug 2065

* std.format: Fixed bug in raw write for arrays

* std.getopt: Added new option stopOnFirstNonOption. Also automatically expand dubious option groups with embedded in them (useful for shebang scripts)

* std.math: improved integral powers

* std.md5: Improved signature of sum so it takes multiple arrays. Added getDigestString.

* std.path: changed signatures of test functions from bool to int. Implemented rel2abs for Windows. Improved join so that it accepts multiple paths. Got rid of some gotos with the help of scope statements.

* std.process: added getenv and setenv. Improved system() so it returns the exit code correctly on Linux.

* std.random: added the dice function - a handy (possibly biased) dice.

* std.file: added support for opening large files (not yet tested)

* std.utf: added the codeLength function. Got rid of some gotos.
2008-05-06 05:08:52 +00:00
Walter Bright
fbcc8b5ad8 fix some of the build breaks in last checkin 2008-05-05 05:17:10 +00:00
Don Clugston
7908579037 Bugfix(typo) for issubnormal() on non-X86 systems. 2008-05-02 12:36:05 +00:00
Don Clugston
58749fe3fd * added numeric.findRoot. AFAIK this is faster than any previously published 1D general-purpose root finder,
* added math.ieeeMean. Not yet public (may need a different name). Used  by findRoot.
* reformatting for std.math -- 80 char width, etc.
2008-04-01 19:10:40 +00:00
Andrei Alexandrescu
716e16bb20 Fixed minor documentation typo. 2008-03-06 20:15:10 +00:00
Don Clugston
3b11e8600d * Support for different CPU IEEE 'real' formats: 64-bit, 80-bit and 128-bit (quadruple) reals, both BigEndian and LittleEndian; partial support for non-IEEE 'doubledouble' reals.
* Bugzilla 1877 (atan2 doc bugs)
* Bugzilla 1722 std.math.nextafter not implemented on Windows
* Added implementation of scalb for DMD-Windows.
* Added nextUp(), nextDown()
* Bugzilla 1881: feqrel nonsensical for non-real arguments.
2008-02-29 08:40:45 +00:00
Walter Bright
3b9583956f dtor support 2008-02-25 08:37:57 +00:00
Andrei Alexandrescu
dcddec72f4 Don Clugston's changes 2008-02-20 08:14:39 +00:00
Andrei Alexandrescu
a71a28d734 Don Clugston's changes 2008-02-20 08:13:18 +00:00
Andrei Alexandrescu
29f3cc23f7 std.math: minor change in approxEqual.
std.contracts: added functions pointsTo()

std.numeric: minor unittest fixes.

std.bitmanip: fixed code bloat issue, reintroduced FloatRep and DoubleRep.

std.conv: minor simplification of implementation.

std.regexp: added reference to ECMA standard in the documentation.

std.getopt: changed return type from bool to void, error is signaled by use of exceptions.

std.functional: added unaryFun, binaryFun, adjoin.

std.string: updated documentation, changed code to compile with warnings enabled.

std.traits: changed FieldTypeTuple; added RepresentationTypeTuple, hasAliasing; fixed bug 1826; added call to flush() from within write; fixed unlisted bug in lines().

std.algorithm: added map, reduce, filter, inPlace, move, swap, overwriteAdjacent, find, findRange, findBoyerMoore, findAdjacent, findAmong, findAmongSorted, canFind, canFindAmong, canFindAmongSorted, count, equal, overlap, min, max, mismatch, EditOp, none, substitute, insert, remove, levenshteinDistance, levenshteinDistanceAndPath, copy, copyIf, iterSwap, swapRanges, reverse, rotate, SwapStrategy, Unstable, Semistable, Stable, eliminate, partition, nthElement, sort, schwartzSort, partialSort, isSorted, makeIndex, schwartzMakeIndex, lowerBound, upperBound, equalRange, canFindSorted.

std.thread: fixed so it compiles with warnings enabled.

std.file: made getSize() faster under Linux.

std.random: fixed so it compiles with warnings enabled; improved function uniform so it deduces type generated from its arguments.

std.format: added fixes to make formatting work with const data.

std.path: minor documentation changes.
2008-02-19 07:00:56 +00:00
Andrei Alexandrescu
b2e8b06eaf minor change in approxEqual. 2008-02-19 06:22:49 +00:00
Brad Roberts
af2e404d90 fix two more final -> auto cases 2008-02-10 10:15:02 +00:00
Brad Roberts
70b453697f Document not supported functions as such, see bug 1722 2007-12-10 02:20:38 +00:00
Brad Roberts
e9bc17d977 re-disable nextafter(real, real) on windows since dmc's runtime still doesn't support it, see bug 1722 2007-12-09 23:50:10 +00:00
Brad Roberts
c2c30a9d45 Add missing space in NotImplemented exception message 2007-12-09 21:20:37 +00:00
Brad Roberts
09916d399a Initial merge of candidate to trunk for r459:513 2007-11-27 20:28:40 +00:00
Brad Roberts
a9bc53273c merge r387:397 from candidate to trunk
-- new module std.contracts
  -- migrate callers to it where appropriate
2007-10-14 23:04:19 +00:00
Brad Roberts
eec6be69ed Merge r297:387 from candidate to trunk.
-- add std.getopt
  -- add std.variant
  -- switch strings over to be invariant rather than const
  -- hopefully the last big linux makefile overhaul
  -- fix for bug 1579: write[ln] fails for obj.toString()
  -- fix negative precision handling in std.format
  -- add some file and directory iterator helpers
  -- among other little changes here and there...
2007-10-14 09:22:50 +00:00
Walter Bright
58e8b59b8d remove html from std.math 2007-10-02 06:15:10 +00:00
Brad Roberts
8f79f3ec35 phobos 2.003 2007-09-10 07:28:23 +00:00
Brad Roberts
de971890b0 phobos 2.000 2007-09-10 06:45:08 +00:00
Brad Roberts
76dac5da92 phobos 0.176 2007-09-10 05:36:13 +00:00
Brad Roberts
a298690ea5 phobos 0.170 2007-09-10 05:32:20 +00:00
Brad Roberts
613c86dca9 phobos 0.168 2007-09-10 05:31:04 +00:00
Brad Roberts
c4389822c1 phobos 0.167 2007-09-10 05:30:20 +00:00
Brad Roberts
b76c21ccf9 phobos 0.161 2007-09-10 05:24:49 +00:00
Brad Roberts
d6ac036aff phobos 0.149 2007-09-10 05:11:52 +00:00
Brad Roberts
110cfd9da7 phobos 0.148 2007-09-10 05:04:40 +00:00
Brad Roberts
72a09be429 phobos 0.146 2007-09-10 05:02:39 +00:00
Brad Roberts
96892ebf9e phobos 0.143 2007-09-10 04:58:30 +00:00
Brad Roberts
14f0405250 phobos 0.141 2007-09-10 04:57:41 +00:00
Brad Roberts
d53da65c02 phobos 0.138 2007-09-10 04:55:20 +00:00
Brad Roberts
8a43e67e9d phobos 0.136 2007-09-10 04:52:55 +00:00
Brad Roberts
4a0e23be55 phobos 0.134 2007-09-10 04:51:01 +00:00
Brad Roberts
cc60c823a2 phobos 0.133 2007-09-10 04:49:48 +00:00
Brad Roberts
362b31cc8d phobos 0.132 2007-09-10 04:48:31 +00:00
Brad Roberts
ed0690db20 phobos 0.131 2007-09-10 04:47:31 +00:00
Brad Roberts
6b069176ba phobos 0.130 2007-09-10 04:46:26 +00:00
Brad Roberts
ccbb884d7d phobos 0.126 2007-09-10 04:44:12 +00:00
Brad Roberts
0c3ebe937f phobos 0.121 2007-09-10 04:38:59 +00:00
Brad Roberts
6cf33ed508 phobos 0.111 2007-09-10 04:28:31 +00:00
Brad Roberts
99f2734db6 phobos 0.88 2007-09-10 03:56:33 +00:00
Brad Roberts
c53c12f16c phobos 0.77 2007-09-10 03:41:43 +00:00
Brad Roberts
35a12fec2f phobos 0.76 2007-09-10 03:11:55 +00:00
Brad Roberts
fa1bc52ba2 phobos 0.75 2007-09-10 03:06:06 +00:00
Renamed from math.d (Browse further)