Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | fixes #8421, fixes #7968, Nim compiler compiles with MSVC C89 version (#8556) | andri lim | 2018-08-07 | 1 | -24/+58 |
| | |||||
* | Merge pull request #7950 from Paalon/math-log | Andreas Rumpf | 2018-06-14 | 1 | -5/+15 |
|\ | | | | | Add log for base b of x | ||||
| * | Fix a test | Koki Fushimi | 2018-06-14 | 1 | -1/+1 |
| | | |||||
| * | Use one same type for two parameters | Koki Fushimi | 2018-06-14 | 1 | -5/+1 |
| | | |||||
| * | Use concrete expression | Koki Fushimi | 2018-06-05 | 1 | -7/+6 |
| | | |||||
| * | Bug fix | Koki Fushimi | 2018-06-05 | 1 | -2/+3 |
| | | |||||
| * | Change to use log(x, base) | Koki Fushimi | 2018-06-05 | 1 | -3/+3 |
| | | |||||
| * | Broaden the argument types | Koki Fushimi | 2018-06-04 | 1 | -1/+6 |
| | | |||||
| * | Generalize and add test | Koki Fushimi | 2018-06-04 | 1 | -7/+14 |
| | | |||||
| * | Add log proc for base b of x | Koki Fushimi | 2018-06-04 | 1 | -1/+3 |
| | | |||||
* | | Rename tgamma to gamma (#7929) | Koki Fushimi | 2018-06-05 | 1 | -3/+10 |
| | | | | | | | | | | | | | | | | * Rename tgamma to gamma * set the deprecating version 0.19.0 * update changelog and use description in deprecated pragma | ||||
* | | Add product proc (#7951) | Koki Fushimi | 2018-06-04 | 1 | -1/+13 |
|/ | | | | | | * Add product proc * Update changelog | ||||
* | Removed spaces in math module | data-man | 2018-05-30 | 1 | -1/+1 |
| | |||||
* | Use truncation division in mod for floats (#7118) | Oscar Nihlgård | 2018-05-30 | 1 | -11/+40 |
| | | | | | | | | | | * Use truncation division in mod for floats * Add changelog entry * Add floorDiv/floorMod to math.nim * Update changelog | ||||
* | Add inverse hyperbolic, and cot, sec and csc; and their hyperbolic, inverse, ↵ | Koki Fushimi | 2018-05-30 | 1 | -61/+96 |
| | | | | | | | | | | | | | | | | inverse hyperbolic, and change to use defined functions in C or JS for logs and hyperbolics. (#7893) * Add secant, cosecant and cotangent. * Add hyperbolic functions of cotangent, secant and cosecant. * Add inverse hyperbolic functions. * Change to use defined function of C and JS. * Bug fix and refactoring. * Add change to changelog.md | ||||
* | Faster binary gcd algorithm (#7849) | Koki Fushimi | 2018-05-26 | 1 | -2/+30 |
| | | | | | | | | | | | | * Faster binary gcd algorithm. * Use built in countTrailingZeroBits to calculate gcd. * Add definitions of gcd for integers and other types. * Unified signed case and unsinged case in one proc by using when syntax. * Change to faster one. | ||||
* | Fixes factorial's bug | data-man | 2018-05-17 | 1 | -1/+12 |
| | |||||
* | Replace factorial function with a compile time one (#7276) | notTito | 2018-05-04 | 1 | -4/+14 |
| | | | | | | | | * Replace factorial function with a compile time one * Fix the indentation * Update | ||||
* | fixes #6353 (#6951) | skilchen | 2017-12-21 | 1 | -4/+13 |
| | |||||
* | add missing math.trunc for js backend (#6950) | skilchen | 2017-12-20 | 1 | -0/+2 |
| | |||||
* | Add hint about computing powers between integers (#6419) | Federico Ceratto | 2017-10-16 | 1 | -0/+2 |
| | |||||
* | fixes #5966 | Fabian Keller | 2017-06-20 | 1 | -4/+7 |
| | |||||
* | Add sgn() function to the math module (#5971) | John Novak | 2017-06-15 | 1 | -0/+25 |
| | |||||
* | bcc misses the same functions like vcc | AdrianV | 2016-12-28 | 1 | -1/+1 |
| | |||||
* | Fixed #4532, VS2010 now can compile Nim | andri lim | 2016-08-08 | 1 | -7/+86 |
| | | | | | | | | Fixed #4532, VS2010 now can compile Nim Fixed #4532, VS2010 now can compile Nim | ||||
* | Removed trailing whitespace in math module | Mathijs Saey | 2016-08-05 | 1 | -1/+1 |
| | |||||
* | Fixed #4574 | Mathijs Saey | 2016-08-05 | 1 | -1/+1 |
| | |||||
* | Corrected comment in maths library. | A. S. Budden | 2016-06-20 | 1 | -1/+1 |
| | |||||
* | Update math.nim | matkuki | 2016-06-18 | 1 | -1/+1 |
| | |||||
* | Windows MSVC < 2012 'round' function update | matkuki | 2016-06-17 | 1 | -5/+11 |
| | | | | Microsoft Visual C++ compilers prior to 2012 do not implement the 'round', 'roundl' or 'roundf' functions. This change is fixes this. Tested it with MSVC 2010. | ||||
* | Changed math.nim tests to use newly defined ==~ operator | A. S. Budden | 2016-05-31 | 1 | -24/+24 |
| | |||||
* | Correction to round0 following review. | A. S. Budden | 2016-05-31 | 1 | -1/+1 |
| | |||||
* | Implemented function to split floating point numbers at the decimal place ↵ | A. S. Budden | 2016-05-31 | 1 | -0/+25 |
| | | | | (equivalent to C's modf function). Fixes #4195. | ||||
* | Modification to implementation of round() such that it returns a float and ↵ | A. S. Budden | 2016-05-31 | 1 | -25/+67 |
| | | | | | | accepts a places argument (fixes #3473). This also involved moving some functions around to get the hierarchy correct and the documentation for frexp was modified such that it was clear that it can return a float in either the range [-1, -0.5] or [0.5, 1]. | ||||
* | moved random procs from math to its own module (breaking change) | Andreas Rumpf | 2016-05-30 | 1 | -110/+0 |
| | |||||
* | Merge branch 'patch-8' of https://github.com/apense/Nim into apense-patch-8 | Andreas Rumpf | 2016-05-30 | 1 | -52/+101 |
|\ | |||||
| * | Fixed silly format error | apense | 2015-06-24 | 1 | -1/+1 |
| | | | | | | Needed other bracket | ||||
| * | Converted tabs | apense | 2015-06-24 | 1 | -39/+39 |
| | | | | | | Not sure what was going on before | ||||
| * | Rewrote procs for float32/float64 | apense | 2015-06-24 | 1 | -86/+128 |
| | | | | | | When a proc is `importc`-ed, made explicit. Otherwise, used `[T: float32|float64]` | ||||
* | | Setting TAU to 2 * PI | gmpreussner | 2016-03-17 | 1 | -1/+1 |
| | | |||||
* | | Added TAU constant. | gmpreussner | 2016-03-17 | 1 | -0/+1 |
| | | |||||
* | | Removal of stats procs for openarray (use the RunningStat methodology) | JamesP | 2015-11-11 | 1 | -20/+0 |
| | | |||||
* | | Removal of RunningStats ready for new stats.nim pure lib file | JamesP | 2015-11-07 | 1 | -42/+0 |
| | | |||||
* | | fix float comparision failure in math tests | Aman Gupta | 2015-10-02 | 1 | -1/+1 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | FAIL: math.nim Test "lib/pure/math.nim" in category "lib" Failure: reExitcodesDiffer Expected: exitcode: 0 Gotten: exitcode: 1 Output: Traceback (most recent call last) math.nim(478) math system.nim(3343) failedAssertImpl system.nim(3335) raiseAssert system.nim(2531) sysFatal Error: unhandled exception: tgamma(5.0'f64) == 24.0'f64 [AssertionError] | ||||
* | | 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 |
| | |