134 Commits (f33dfb966a1432281809e372b9d3803e7fd3cb2f)

Author SHA1 Message Date
Damien George b796f1e3f1 tests/float/inf_nan_arith.py: Include -inf in argument combos. 11 months ago
Damien George 7c88cdda49 tests/float/math_domain.py: Tweak test to also pass with obj-repr-C. 1 year ago
Damien George 3695211576 tests/float/float_format_ints.py: Put power-of-10 test in separate file. 1 year ago
Damien George ed962f1f23 tests/float: Test domain errors for more combos of args to math funcs. 1 year ago
Jim Mussared 4216bc7d13 tests: Replace umodule with module everywhere. 2 years ago
Damien George 2e4dda3c20 py/modmath: Fix two-argument math function domain check. 2 years ago
Damien George 177ae2f346 tests/float: Make output of math function tests more readable. 2 years ago
Damien George 799d888182 tests/float: Add domain checks for log and also -inf. 2 years ago
Damien George 5c3c1c737e tests/float: Skip new complex tests if complex unavailable. 2 years ago
Dan Ellis 6f4d424f46 py/formatfloat: Use pow(10, e) instead of pos/neg_pow lookup tables. 2 years ago
Dan Ellis f9cbe6bc47 py/formatfloat: Format all whole-number floats exactly. 2 years ago
Damien George 4fe3e493b1 py/obj: Make mp_obj_get_complex_maybe call mp_obj_get_float_maybe first. 2 years ago
Andrew Leech 1e87b56219 py/obj: Add support for __float__ and __complex__ functions. 2 years ago
Damien George 61ce260ff7 py/parsenum: Fix parsing of complex "j" and also "nanj", "infj". 2 years ago
Jim Mussared 0172292762 py/parsenum: Support parsing complex numbers of the form "a+bj". 3 years ago
Damien George ab2923dfa1 all: Update Python formatting to latest Black version 22.1.0. 3 years ago
stijn dd6967202a py/modmath: Add math.tau, math.nan and math.inf constants. 5 years ago
Damien George adf35cbab0 tests/float: Make bytes/bytearray construct tests work with obj repr C. 3 years ago
Damien George dc86e04476 tests: Make float and framebuf tests skip or run on big-endian archs. 4 years ago
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