Burkardt-Fortran-90
mpmath
Burkardt-Fortran-90 | mpmath | |
---|---|---|
1 | 10 | |
40 | 917 | |
- | 0.8% | |
8.2 | 9.0 | |
2 months ago | 27 days ago | |
Python | ||
- | BSD 3-clause "New" or "Revised" License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Burkardt-Fortran-90
-
What numerical libraries (besides LAPACK) do you normally use in Fortran?
I have used many codes by John Burkardt https://people.sc.fsu.edu/~jburkardt/f_src/f_src.html and classified them at https://github.com/Beliavsky/Burkardt-Fortran-90 .
mpmath
- mpmath – Python library for arbitrary-precision floating-point arithmetic
-
Lies My Calculator and Computer Told Me [pdf]
What you've done here is tell SymPy to use extra precision for the intermediate (and final) output. This doesn't truly fix the problem of cancellation and loss of precision, but for many practical purposes it can postpone the problem long enough to give you a useful result.
Internally, SymPy uses mpmath (https://mpmath.org/) for representation of numbers to arbitrary precision. You could install and use the latter library directly, gaining extra precision without going through symbolic manipulation.
All that being said, it's still good practice to avoid loss of precision at the outset. Arbitrary-precision calculations are slow compared to hardware-native floating point operations. Using the example from mpmath's homepage in iPython:
In [1]: import mpmath as mp; import scipy as sp; import numpy as np
-
mpmath VS gmpy - a user suggested alternative
2 projects | 2 Aug 2023
-
How can I compute the Mandelbrot Set at infinite zoom level
Either use a fixed point system with enough precision (determined beforehand) or consider a library like https://mpmath.org.
- How do I get more decimal places for numbers in Python?
-
My function isn't working correctly
Sure you can, check out projects for high precision numbers like https://mpmath.org/
- How to preserve decimal places
-
Math with Significant Figures
Probably the most popular package for dealing with error propagation and arbitrary precision arithmetic in Python is mpmath, more specifically the mp.iv module. For more serious applications I'd take a look at MPFR and Arb, both in C. And there are tons of ball arithmetic and interval arithmetic libraries in Fortran.
-
Integrating an extremely oscillating function!
Elaborating on /u/lanemik: if you're forced to do everything numerically and aren't able to use rationals, you can also use multiple-precision arithmetic. It's significantly slower, but it's as precise as you need it to be. Note that numpy will happily work with other objects that define arithmetic operations. I haven't messed with scipy enough to know how it does things.
- were can i find advance ( hardest ) python projects with source code ?
What are some alternatives?
SciFortran - A library of fortran modules and routines for scientific calculations (*in a way* just like scipy for python)
NumPy - The fundamental package for scientific computing with Python.
SigFigs - Implementation of a Sigfig class and an Exact class that allow math to be done while keeping the correct number of significant digits.
gmpy - General Multi-Precision arithmetic for Python 2.6+/3+ (GMP, MPIR, MPFR, MPC)
arb - Arb has been merged into FLINT -- use https://github.com/flintlib/flint/ instead
SciPy - SciPy library main repository
number-precision - 🚀1K tiny & fast lib for doing addition, subtraction, multiplication and division operations precisely
SymPy - A computer algebra system written in pure Python
0.30000000000000004 - Floating Point Math Examples
Home Assistant - :house_with_garden: Open source home automation that puts local control and privacy first.
desolver - A Python library for solving Initial Value Problems using various numerical integration methods.