Multiple Precision Toolbox for MATLAB
Version 2.0 (113 KB) von
Ben Barrowes
This toolbox defines a new mp class allowing multiple precision objects in MATLAB.
The mp toolbox defines a new class, the mp class, which holds arbitrary precision quantities. Many common numerical functions are overloaded for this class and therefore work without modification to source code. Look at the @mp directory under the MATLAB directory for a list of mp supported functions. If the function is not specifically written for mp objects, it still may work if the function in question relies only on functions in the @mp directory. Precompiled and builtin function from TMW like eig, etc. will not work with mp objects unless specifically written using overloaded functions from the @mp directory.A simple script, mp_makeall.m looks through the current variables,and converts all doubles to mp objects.The mp toolbox is only implemented for base 10 quantities, and the rounding mode is fixed to be GMP_RNDN (unless you change it in all the /private/*.c files and recompile).The overloaded functions sum, min, and max only work for 1 or 2 dimensional mp objects right now.mp random numbers can be generated using rand() if rand at least 1 of the input arguments is an mp object. However, the seed given to gmp_randseed_ui is only in the range 0<seed<1000000, but this can be adjusted in @mp/rand.mA zeta function using m arithmetic is provided, whereas native MATLAB has no such function except for sym objects.
Zitieren als
Ben Barrowes (2026). Multiple Precision Toolbox for MATLAB (https://de.mathworks.com/matlabcentral/fileexchange/6446-multiple-precision-toolbox-for-matlab), MATLAB Central File Exchange. Abgerufen.
Kompatibilität der MATLAB-Version
Erstellt mit
R2018b
Kompatibel mit allen Versionen
Plattform-Kompatibilität
Windows macOS LinuxKategorien
Mehr zu Numbers and Precision finden Sie in Help Center und MATLAB Answers
Tags
Quellenangaben
Inspiriert: testing and solving polynomials, Variable Precision Integer Arithmetic, HPF - a big decimal class
Live Editor erkunden
Erstellen Sie Skripte mit Code, Ausgabe und formatiertem Text in einem einzigen ausführbaren Dokument.
@mp
@mp/private
| Version | Veröffentlicht | Versionshinweise | |
|---|---|---|---|
| 2.0 | Fixed a bug with sqrt and an subscript referencing bug. |
||
| 1.5.0.0 | updated mp.m to not lose accuracy when converting doubles to mp objects |
||
| 1.4.0.0 | removed dll from zip file |
||
| 1.2.0.0 | License fixed |
