Skip to content

Run mpmath as a module for interactive work#773

Merged
skirpichev merged 1 commit intompmath:masterfrom
skirpichev:run-as-module
Apr 16, 2024
Merged

Run mpmath as a module for interactive work#773
skirpichev merged 1 commit intompmath:masterfrom
skirpichev:run-as-module

Conversation

@skirpichev
Copy link
Collaborator

@skirpichev skirpichev commented Apr 2, 2024

Example:

$ python -m mpmath --prec 100 --no-ipython
>>> 10.9
mpf('10.899999999999999999999999999995')
>>> mpf(1090/100)
mpf('10.899999999999999999999999999995')
>>> mpf('10.9')
mpf('10.899999999999999999999999999995')
>>> mpf(109)/mpf(10)
mpf('10.899999999999999999999999999995')
>>> mpf(10.9)
mpf('10.899999999999999999999999999995')

Closes #677
Closes #765

@skirpichev skirpichev force-pushed the run-as-module branch 4 times, most recently from 5a2cedb to d1dea36 Compare April 9, 2024 05:26
@skirpichev skirpichev marked this pull request as ready for review April 13, 2024 06:19
Example:
```
$ python -m mpmath --prec 100 --no-ipython
>>> 10.9
mpf('10.899999999999999999999999999995')
>>> mpf(1090/100)
mpf('10.899999999999999999999999999995')
>>> mpf('10.9')
mpf('10.899999999999999999999999999995')
>>> mpf(109)/mpf(10)
mpf('10.899999999999999999999999999995')
>>> mpf(10.9)
mpf('10.899999999999999999999999999995')
```

Closes mpmath#677
Closes mpmath#765
@skirpichev skirpichev merged commit 5ed78da into mpmath:master Apr 16, 2024
@skirpichev skirpichev deleted the run-as-module branch April 16, 2024 09:13
@skirpichev skirpichev added this to the 1.4 milestone May 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Run mpmath as module (for interactive work)? ensure "gotchas" are easy to find and link to

1 participant