summary refs log tree commit diff stats
path: root/lib/pure/math.nim
Commit message (Collapse)AuthorAgeFilesLines
* Document explicitly the behaviour of math.gcd with float argumentsBoris Vassilev2015-05-131-0/+3
|
* Merge pull request #2537 from jsanjuas/develVarriount2015-05-071-6/+11
|\ | | | | Generalize mean to other types
| * Convert to float before sumJosep Sanjuas2015-04-181-2/+3
| |
| * Document toFloat is necessaryJosep Sanjuas2015-04-181-0/+1
| |
| * Generalize variance to other typesJosep Sanjuas2015-04-181-3/+3
| |
| * Generalize mean to other typesJosep Sanjuas2015-04-121-2/+5
| |
* | fixes isPowerOfTwo returning true on the smallest integerKoala Zen2015-05-061-1/+1
| |
* | Don't run non-test code when defined(testing)Oleh Prypin2015-04-211-1/+3
|/
* no side effects on math procs, fixes #2458Simon Hafner2015-04-041-0/+7
|
* Make gcd iterative instead of recursivedef2015-02-161-4/+5
|
* Remove shuffle againdef2015-02-161-8/+0
|
* Export new math procsdef2015-02-161-2/+2
|
* Add shuffle to math moduledef2015-02-161-0/+8
|
* Add `^`, gcd and lcm to mathdef2015-02-161-0/+24
|
* Merge pull request #2111 from lyro/fix-2110Andreas Rumpf2015-02-121-2/+2
|\ | | | | fix conditions for int size in 'math.nextPowerOfTwo' #2110
| * fix conditions for int size in 'math.nextPowerOfTwo' #2110Frank Fischer2015-02-121-2/+2
| |
* | fixed minor bugs; cleaned up testsAraq2015-02-121-4/+4
|/
* Happy new year!Guillaume Gelin2015-01-061-1/+1
|
* Fix some deprecation warnings caused by renamesdef2014-11-131-1/+2
|
* Merge branch 'devel' into bigbreakAraq2014-11-031-1/+0
|\ | | | | | | | | | | | | | | Conflicts: lib/impure/db_postgres.nim lib/pure/json.nim lib/pure/math.nim lib/system/atomics.nim
| * Fix math.nim on windowsVarriount2014-11-031-1/+1
| |
| * Merge pull request #1448 from def-/posix-mathAndreas Rumpf2014-11-031-11/+0
| |\ | | | | | | Add -lm for fesetround and fegetround
| | * Move fenv to its own moduledef2014-08-221-54/+0
| | |
| | * Move floating point rounding and exceptions handling to mathdef2014-08-061-0/+43
| | | | | | | | | | | | (it's C99 as well, not just POSIX)
* | | Nimrod renamed to NimAraq2014-08-281-3/+3
| | |
* | | big renameAraq2014-08-271-15/+17
| | |
* | | renamefestAraq2014-08-231-2/+2
|/ /
* | Merge pull request #1351 from def-/random-openarraysDominik Picheta2014-08-131-1/+6
|\ \ | | | | | | Add random() for openarrays
| * | Add random() for openarraysdef2014-07-121-1/+6
| |/
* / distinguish between 'defined' and 'declared'Araq2014-08-111-1/+1
|/
* Hyperlinks back JavaScript target.Grzegorz Adam Hankiewicz2014-06-211-1/+2
|
* added a note about random(max: float): float's resolution on windowsCharlie2014-05-181-1/+2
|
* added random(max: float): float support to windowsCharlie2014-05-181-7/+13
|
* made large parts of the stdlib gcsafeAraq2014-04-201-6/+8
|
* JS: Fixes math and streams module and implements json.Dominik Picheta2014-04-111-2/+2
|
* Removed trailing ';'.ReneSac2014-04-061-1/+1
|
* Zero is not a power of two. Fix #1047ReneSac2014-04-061-12/+14
| | | | Also, fixed some docstrings and added {.noSideEffect.} pragma to nextPowerOfTwo().
* Calling randomize() again within 1 second will now provide a different seedJason Livesay2014-03-261-1/+3
|
* case consistency part 4Araq2013-12-271-4/+4
|
* better support for GNU's assemblerAraq2013-09-031-1/+1
|
* --os:standalone works againAraq2013-06-301-9/+9
|
* Removes executable bit for text files.Grzegorz Adam Hankiewicz2013-03-161-0/+0
|
* EcmaScript => JS. Fixes #330Simon Hafner2013-02-151-8/+8
| | | | No one calls it EcmaScript anymore.
* Adds randomize(seed) for repeatable pseudo random numbers.Grzegorz Adam Hankiewicz2013-01-231-4/+27
| | | | Also fixes srand48() type to clong.
* math.random(max: float) not available on windowsAraq2012-09-191-10/+15
|
* no uniqueCounter it isSimon Hafner2012-09-061-4/+3
|
* + random number generator for floats and slices - with testsSimon Hafner2012-09-061-14/+34
| | | | I also took the liberty to unify the API between ECMAScript and C.
* changed integer promotion rules; added math.fmodAraq2012-06-281-3/+8
|
* Fixed math.round, added math.ceil and fixed times.format.Dominik Picheta2012-06-041-0/+2
|
* year 2012 for most copyright headersAraq2012-01-021-1/+1
|