Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | fixes #3312 | Araq | 2015-09-18 | 1 | -15/+14 |
| | |||||
* | math.nim works with NimScript | Araq | 2015-08-21 | 1 | -7/+9 |
| | |||||
* | Fix exponentiation operation to avoid overflow. | Reimer Behrends | 2015-08-14 | 1 | -1/+3 |
| | | | | | | The exponentation implementation unnecessarily multiplied the result with itself at the end if the exponent was an even number. This led to overflow if result*result > high(int). | ||||
* | Corrected erroneous description | apense | 2015-06-29 | 1 | -1/+2 |
| | | | Hypotenuse is really just the euclidean norm | ||||
* | Added some documentation and examples | apense | 2015-06-29 | 1 | -20/+47 |
| | | | I think I remember reading that the documentation is generated from the normal targets (not javascript), so that's where I put the docs | ||||
* | disable vcc specific code which doesn't work | Araq | 2015-06-29 | 1 | -39/+39 |
| | |||||
* | Merge pull request #2977 from apense/patch-5 | Andreas Rumpf | 2015-06-25 | 1 | -0/+13 |
|\ | | | | | Conversion between radians and degrees.Fixes #2881 | ||||
| * | Specific float32/float64 procs | apense | 2015-06-24 | 1 | -8/+4 |
| | | | | | | I still used generics, but made them choose from `float32` or `float64`. I can rewrite in separate, explicit procs if is wanted | ||||
| * | Conversion between radians and degrees.Fixes #2881 | apense | 2015-06-24 | 1 | -0/+17 |
| | | | | | | provides a new constant for conversion (not public, but that can be changed if it's wanted). the functions are pretty simple, honestly. top-level comment so documentation for each function could remain. Fixes #2881 | ||||
* | | Added documentation for mod | apense | 2015-06-24 | 1 | -0/+6 |
|/ | | | Along with a brief example for sign demonstration | ||||
* | Added some C99 funcs | apense | 2015-06-18 | 1 | -0/+18 |
| | | | Error function (and complementary) and gamma function (and truncated) | ||||
* | Updated RNG for Visual C | apense | 2015-06-14 | 1 | -14/+27 |
| | | | Can't test it, but it should work just fine. Can be extended to MinGW w/ GCC and other compilers sometime in the future | ||||
* | Discarded randomize for windows | apense | 2015-06-11 | 1 | -6/+9 |
| | | | It actually doesn't use it because `rand_s` doesn't. | ||||
* | Updated random functions | apense | 2015-06-11 | 1 | -4/+12 |
| | | | For Windows, `rand_s` has been available since Windows XP (see https://msdn.microsoft.com/en-us/library/sxtz2fa8.aspx). It gives a better quality random number in a larger range (the max is actually `0xffffffff`). | ||||
* | Document explicitly the behaviour of math.gcd with float arguments | Boris Vassilev | 2015-05-13 | 1 | -0/+3 |
| | |||||
* | Merge pull request #2537 from jsanjuas/devel | Varriount | 2015-05-07 | 1 | -6/+11 |
|\ | | | | | Generalize mean to other types | ||||
| * | Convert to float before sum | Josep Sanjuas | 2015-04-18 | 1 | -2/+3 |
| | | |||||
| * | Document toFloat is necessary | Josep Sanjuas | 2015-04-18 | 1 | -0/+1 |
| | | |||||
| * | Generalize variance to other types | Josep Sanjuas | 2015-04-18 | 1 | -3/+3 |
| | | |||||
| * | Generalize mean to other types | Josep Sanjuas | 2015-04-12 | 1 | -2/+5 |
| | | |||||
* | | fixes isPowerOfTwo returning true on the smallest integer | Koala Zen | 2015-05-06 | 1 | -1/+1 |
| | | |||||
* | | Don't run non-test code when defined(testing) | Oleh Prypin | 2015-04-21 | 1 | -1/+3 |
|/ | |||||
* | no side effects on math procs, fixes #2458 | Simon Hafner | 2015-04-04 | 1 | -0/+7 |
| | |||||
* | Make gcd iterative instead of recursive | def | 2015-02-16 | 1 | -4/+5 |
| | |||||
* | Remove shuffle again | def | 2015-02-16 | 1 | -8/+0 |
| | |||||
* | Export new math procs | def | 2015-02-16 | 1 | -2/+2 |
| | |||||
* | Add shuffle to math module | def | 2015-02-16 | 1 | -0/+8 |
| | |||||
* | Add `^`, gcd and lcm to math | def | 2015-02-16 | 1 | -0/+24 |
| | |||||
* | Merge pull request #2111 from lyro/fix-2110 | Andreas Rumpf | 2015-02-12 | 1 | -2/+2 |
|\ | | | | | fix conditions for int size in 'math.nextPowerOfTwo' #2110 | ||||
| * | fix conditions for int size in 'math.nextPowerOfTwo' #2110 | Frank Fischer | 2015-02-12 | 1 | -2/+2 |
| | | |||||
* | | fixed minor bugs; cleaned up tests | Araq | 2015-02-12 | 1 | -4/+4 |
|/ | |||||
* | Happy new year! | Guillaume Gelin | 2015-01-06 | 1 | -1/+1 |
| | |||||
* | Fix some deprecation warnings caused by renames | def | 2014-11-13 | 1 | -1/+2 |
| | |||||
* | Merge branch 'devel' into bigbreak | Araq | 2014-11-03 | 1 | -1/+0 |
|\ | | | | | | | | | | | | | | | Conflicts: lib/impure/db_postgres.nim lib/pure/json.nim lib/pure/math.nim lib/system/atomics.nim | ||||
| * | Fix math.nim on windows | Varriount | 2014-11-03 | 1 | -1/+1 |
| | | |||||
| * | Merge pull request #1448 from def-/posix-math | Andreas Rumpf | 2014-11-03 | 1 | -11/+0 |
| |\ | | | | | | | Add -lm for fesetround and fegetround | ||||
| | * | Move fenv to its own module | def | 2014-08-22 | 1 | -54/+0 |
| | | | |||||
| | * | Move floating point rounding and exceptions handling to math | def | 2014-08-06 | 1 | -0/+43 |
| | | | | | | | | | | | | (it's C99 as well, not just POSIX) | ||||
* | | | Nimrod renamed to Nim | Araq | 2014-08-28 | 1 | -3/+3 |
| | | | |||||
* | | | big rename | Araq | 2014-08-27 | 1 | -15/+17 |
| | | | |||||
* | | | renamefest | Araq | 2014-08-23 | 1 | -2/+2 |
|/ / | |||||
* | | Merge pull request #1351 from def-/random-openarrays | Dominik Picheta | 2014-08-13 | 1 | -1/+6 |
|\ \ | | | | | | | Add random() for openarrays | ||||
| * | | Add random() for openarrays | def | 2014-07-12 | 1 | -1/+6 |
| |/ | |||||
* / | distinguish between 'defined' and 'declared' | Araq | 2014-08-11 | 1 | -1/+1 |
|/ | |||||
* | Hyperlinks back JavaScript target. | Grzegorz Adam Hankiewicz | 2014-06-21 | 1 | -1/+2 |
| | |||||
* | added a note about random(max: float): float's resolution on windows | Charlie | 2014-05-18 | 1 | -1/+2 |
| | |||||
* | added random(max: float): float support to windows | Charlie | 2014-05-18 | 1 | -7/+13 |
| | |||||
* | made large parts of the stdlib gcsafe | Araq | 2014-04-20 | 1 | -6/+8 |
| | |||||
* | JS: Fixes math and streams module and implements json. | Dominik Picheta | 2014-04-11 | 1 | -2/+2 |
| | |||||
* | Removed trailing ';'. | ReneSac | 2014-04-06 | 1 | -1/+1 |
| |