115 Commits (7c4435459261f1ea93577938b1ab281239d159e7)

Author SHA1 Message Date
stijn 2e54d9d146 py: Fix handling of NaN in certain pow implementations. 4 years ago
Damien George 8d5a40c86e py/objfloat: Fix handling of negative float to power of nan. 4 years ago
stijn 40ad8f1666 all: Rename "sys" module to "usys". 4 years ago
Damien George 06659077a8 all: Update Python code to conform to latest black formatting. 4 years ago
Damien George 0c7354afaf tests: Split out complex reverse-op tests to separate test file. 4 years ago
Damien George 9f911d822e py/objcomplex: Add mp_obj_get_complex_maybe for use in complex bin-op. 4 years ago
stijn 81db22f693 py/modmath: Work around msvc float bugs in atan2, fmod and modf. 5 years ago
stijn f31f9a8b70 py/objint: Do not use fpclassify. 5 years ago
stijn 7fb9edf436 tests/float: Fix cmath_fun_special for MICROPY_FLOAT_IMPL_FLOAT. 5 years ago
David Lechner 6110cd3078 tests/float: Add new lexer test to test parsing of float without prefix. 5 years ago
David Lechner 3dc324d3f1 tests: Format all Python code with black, except tests in basics subdir. 5 years ago
Damien George 27465e6b24 tests/basics: Add tests for equality between bool and int/float/complex. 5 years ago
Yonatan Goldschmidt cb4472df42 tests: Add boolean-as-integer formatting tests for fixed regression. 5 years ago
Damien George 30e25174bb tests: Rename "array" module to "uarray". 5 years ago
stijn af5c998f37 py/modmath: Implement math.isclose() for non-complex numbers. 5 years ago
Damien George b3eadf3f3d py/objfloat: Fix abs(-0.0) so it returns 0.0. 6 years ago
Christopher Swenson 8c656754aa py/modmath: Add math.factorial, optimised and non-opt implementations. 6 years ago
Damien George 9849209ad8 tests/float/float_parse.py: Add tests for accuracy of small decimals. 6 years ago
Damien George 5630f277bd tests/float: Test -inf and some larger values for special math funcs. 6 years ago
Damien George a111ca25ea tests/float/cmath_fun.py: Fix truncation of small real part of complex. 6 years ago
Damien George 6a445b60fa py/lexer: Add support for underscores in numeric literals. 7 years ago
Damien George 1ad0013dec tests: Add some tests for bigint hash, float hash and float parsing. 7 years ago
Damien George d2c1db1e5c tests/float/float_parse: Allow test to run on 32-bit archs. 7 years ago
Damien George 955ee6477f py/formatfloat: Fix case where floats could render with negative digits. 7 years ago
Damien George 7b050fa76c py/formatfloat: Fix case where floats could render with a ":" character. 7 years ago
Damien George bc12eca461 py/formatfloat: Fix rounding of %f format with edge-case FP values. 7 years ago
Damien George 6dad088569 tests/float: Adjust float-parsing tests to pass with only a small error. 7 years ago
Damien George bbb08431f3 py/objfloat: Fix case of raising 0 to -infinity. 7 years ago
Damien George b75cb8392b py/parsenum: Fix parsing of floats that are close to subnormal. 7 years ago
Damien George 7cae17fac7 tests/float/builtin_float_hash: Add test to improve objfloat.c coverage. 7 years ago
Damien George 84895f1a21 py/parsenum: Improve parsing of floating point numbers. 7 years ago
Damien George a07fc5b640 py/objfloat: Allow float() to parse anything with the buffer protocol. 7 years ago
Damien George 08a196697c py/formatfloat: Don't print the negative sign of a NaN value. 7 years ago
Damien George 25e140652b py/modmath: Add full checks for math domain errors. 7 years ago
Damien George bdc6e86e07 py/objfloat: Support raising a negative number to a fractional power. 7 years ago
Damien George d4b75f6b68 py/obj: Fix comparison of float/complex NaN with itself. 7 years ago
Paul Sokolovsky 9950865c39 py/objfloat: Fix binary ops with incompatible objects. 7 years ago
Damien George 04552ff71b py: Implement raising a big-int to a negative power. 7 years ago
Damien George 6b8b56f859 py/modmath: Check for zero division in log with 2 args. 7 years ago
Damien George 6ed4581f54 py/formatfloat: Fix number of digits and exponent sign when rounding. 8 years ago
Paul Sokolovsky e094200750 tests/float/builtin_float_minmax: PEP8 fixes. 8 years ago
Damien George fde54350a8 tests/float: Convert "sys.exit()" to "raise SystemExit". 8 years ago
Damien George 677fb31015 tests/float: Add tests for hashing float and complex numbers. 8 years ago
Paul Sokolovsky 28876d3902 tests/float/byte*_construct: Skip on missing array module. 8 years ago
Damien George bfb48c1620 tests/float: Add tests for round() of inf, nan and large number. 8 years ago
Damien George bacb52aa2d tests/float: Add tests for math funcs that return ints. 8 years ago
Paul Sokolovsky a0cbc108ba tests/float: Make various tests skippable. 8 years ago
Paul Sokolovsky 88ffe0d5cc tests/string_format_modulo2: Split off intbig test. 8 years ago
Paul Sokolovsky 4b03941f5e tests/float2int*: Suffix with _intbig, don't run on any other int type. 8 years ago
Paul Sokolovsky 121fb88988 float/float2int*: Make actually be parsable for MICROPY_LONGINT_IMPL_NONE. 8 years ago