Commit graph

78 commits

Author SHA1 Message Date
Jeff Epler
344d29f5c5 Add pull request template 2022-02-15 09:59:16 -06:00
Jeff Epler
b391f2b8de Update pre-commit, blacken 2022-02-15 09:59:16 -06:00
251c846004
Merge pull request #8 from CedarGroveStudios/patch-1
Hardwire return values for domain limits of `arcsin` and `arccos`
2022-02-15 09:58:40 -06:00
Jeff Epler
0526762f47 add some doctests for the special values too 2022-02-15 09:53:28 -06:00
Jeff Epler
8d87dd4ba7 Add more test cases 2022-02-15 09:50:22 -06:00
Jeff Epler
c98ad66398 fix for pylint 2022-02-15 09:50:17 -06:00
Cedar Grove Maker Studios
4f5be4b3c2
change asin(-1) result to match math.asin(-1) = -pi/2 radians
```>>> math.asin(-1)
-1.5708
>>> Decimal.asin(-1)
Decimal('-1.570796326794896619231321692')```

also updated `acos` example; verified other examples, as well
2022-02-14 19:14:14 -08:00
Cedar Grove Maker Studios
5dbf41709b
update asin(-1) to equal -pi/2 rads to be consistent with math.asin
Also update acos example to reflect actual result rounded to 28 digits. Verified other examples, as well.
2022-02-14 19:05:09 -08:00
Cedar Grove Maker Studios
6424dcbdcf
address requested changes
3/2 pi rad is equal to -pi/2 rad
other changes were caused by file editing issues. sorry about that.
2022-02-14 16:26:51 -08:00
Cedar Grove Maker Studios
75b919036c
Hardwire return values for domain limits of arcsin and arccos
fix for issue #7 
https://github.com/jepler/Jepler_CircuitPython_udecimal/issues/7
2022-02-14 11:32:46 -08:00
2356655f90 require more things 2021-11-03 14:26:19 -05:00
f6a2be6239 point readthedocs at the right requirements 2021-11-03 14:24:31 -05:00
822f993125 require specific sphinx version 2021-11-03 14:21:49 -05:00
caac804460
Merge pull request #6 from jepler/fix-circup-deps
Move most requirements to requirements_dev.txt
2021-08-20 19:35:29 -05:00
cbe997a1d5 adapt to name of test runner script 2021-08-20 19:15:27 -05:00
8c8e04d25c Move most requirements to requirements_dev.txt
Closes: #5
2021-08-20 18:56:34 -05:00
97ba42ed99
Merge pull request #4 from jepler/lint-in-precommit
switch pylint to pre-commit
2021-02-16 20:39:04 -06:00
b8115ffe7a Move pre-commit to its own workflow 2021-02-16 20:32:30 -06:00
cc78c8b27b switch pylint to pre-commit 2021-02-16 20:25:20 -06:00
5c0c42ae94
Merge pull request #3 from jepler/moneyfmt
Add moneyfmt example
2021-02-14 08:59:50 -06:00
a0381ad368 Add moneyfmt example from https://docs.python.org/3/library/decimal.html#recipes 2021-02-14 08:55:16 -06:00
7513319e2e
Merge pull request #2 from jepler/misc-updates
upload bundles; bump ubuntu version
2021-02-09 21:44:36 -06:00
e797ff64ab pin the 'reuse' tool's version 2021-02-09 21:40:42 -06:00
c9882cd1c7 bump actions ubuntu version 2021-02-09 21:38:10 -06:00
6cdeb8028b upload bundles 2021-02-09 21:36:27 -06:00
35e0dc877c remove circuitpython version notice, as the stable version now supports all we need 2021-02-09 21:36:00 -06:00
b4c0b54a91 remove circuitpython version notice, as the stable version now supports all we need 2021-02-09 21:35:00 -06:00
b07a53bae3
Merge pull request #1 from jepler/warn-bitlength
Improve the diagnostic when the user's circuitpython is too old
2020-11-09 08:03:44 -06:00
c2052c1169 Give clear error about bit length on import 2020-11-09 07:33:41 -06:00
3258843a85 bump suggested version 2020-11-09 07:33:31 -06:00
449cae5ffa bump python version instead 2020-09-19 14:18:58 -05:00
500586f444 ignore exp and out files (from tests) 2020-09-19 14:18:53 -05:00
ec054c7717 Revert "pin a certain circuitpython version, to avoid surprises"
This reverts commit f8772be832.
2020-09-19 14:15:55 -05:00
f8772be832 pin a certain circuitpython version, to avoid surprises 2020-09-19 14:07:49 -05:00
b283885de6 test_udecimal: Improve tests based on reported test cases
also, for the common part, ensure that desktop Python's own decimal
implementation is used.

"print(+c.flags[Foo])" is because udecimal returns 0/1 for these, while
Python's decimal returns False/True.
2020-09-19 09:50:35 -05:00
ec6f61c6ac utrig: Fix several bugs reported by @cradek 2020-09-19 09:49:24 -05:00
1817253b81 utrig: Fix logb(0) 2020-09-18 19:45:02 -05:00
ea6e2e52a1 required PR merged upstream 2020-09-10 20:15:39 -05:00
978901fea7 fix file paths for release builds 2020-09-10 18:33:53 -05:00
cadbab46f2 further silence pylint 2020-09-10 17:52:46 -05:00
8f459c84c4 further appease pylint 2020-09-10 17:50:11 -05:00
307727a1bd silence pylint 2020-09-10 17:46:57 -05:00
313dd7a556 appease black 2020-09-10 17:44:42 -05:00
575b025761 Run tests in circuitpython unix port too 2020-09-10 17:43:35 -05:00
e95553d8c2 extract doctests to run with micropython testsuite 2020-09-10 17:34:39 -05:00
938f977ad1 fix comparison of decimal and integer 2020-09-10 17:34:25 -05:00
d0d0b9f250 remove commented-out format code 2020-09-10 17:20:58 -05:00
40edf19d52 fixup! hide as_integer_ratio 2020-09-10 17:17:42 -05:00
2439939696 remove logical operations on decimal numbers 2020-09-10 17:17:11 -05:00
f41860f71a hide as_integer_ratio 2020-09-10 17:14:03 -05:00