| New Reply |
Is there any package to add to MATLAB to make it better at higher order arithmetic? |
Share Thread | Thread Tools |
| Jul25-12, 01:59 PM | #1 |
|
|
Is there any package to add to MATLAB to make it better at higher order arithmetic?
Basically I'm writing my MSc dissertation right now, and I've been doing a lot on primes
I've written all my code in MATLAB, but my supervisor told me today that MATLAB is crap for higher order arithmetic and the primes only go up to something like 10 digits long. SO I'm kinda screwed right now, he suggests using Maple but I'm already so far through. Is there any way I can add something to MATLAB to make it store more primes? Or be able to factor an integer 100 digits long? Thanks |
| PhysOrg.com |
science news on PhysOrg.com >> Hong Kong launches first electric taxis >> Morocco to harness the wind in energy hunt >> Galaxy's Ring of Fire |
| Jul26-12, 02:22 AM | #2 |
|
|
See if the Matlab Sybmolic Math Toolbox will let you finish.
http://www.mathworks.com/products/symbolic/ It looks like the Matlab folks made a deal with the Mupad folks to incorporate some arbitrary precision stuff into Matlab. That probably means you will have to make some changes to your code and learn some new things, but you might be able to keep and make use of some of what you have done. Unless you have a lot of compute power or time or "easy" numbers to factor I am guessing that 100 digit numbers are going to be a very very difficult challenge. 50 digit factors are still considered fairly impressive records. http://www.alpertron.com.ar/ECMREC.HTM Unfortunately that doesn't mention how many processor megaseconds it took to find each of those. |
| Jul26-12, 06:09 AM | #3 |
|
|
If you need to do some serious number theory work, it's probably better to use a C/C++ library (or some other optimized library that can be called from something like the way ScyPy is from Python).
I say this because you want to factor a 100-digit library and this is going to be computationally intensive to say the least (remember that a lot of high performance libraries have routines that can factor big integers with a variety of algorithms). |
| Jul27-12, 09:45 AM | #4 |
|
|
Is there any package to add to MATLAB to make it better at higher order arithmetic?An alternative produce to consider is Mathcad (it handles arbitrary precision arithmetic and has a Matlab interface and its programming is similar enough to Matlab to allow porting of many programs without too much effort). I've attached an image of part of a simple worksheet that factorizes the decades of ten (plus a small constant) and shows the times for each factorization ... some of them are quite lengthy. Another package to consider is the non-commercial SMath, a Mathcad-like application that also does arbitrary precision arithmetic. I'm not sure whether it has a factor function. |
| Jul27-12, 12:39 PM | #5 |
|
Recognitions:
|
Traditionally Matlab has always more for number crunching than number theory.
You should take a look at python, in particular the mpmath and sympy libraries. They can handle a lot of multi-precision and number system functions. BTW. Firepanda, can you tell us the main types of function that your work requires. For example, stuff like integer factorization, prime generation, arbitrary precision maths etc? Can you list the main types of functions you need. |
| New Reply |
| Thread Tools | |
Similar Threads for: Is there any package to add to MATLAB to make it better at higher order arithmetic?
|
||||
| Thread | Forum | Replies | ||
| Looking for series of books(maths) arithmetic to calculus(or higher) | Science Textbook Discussion | 11 | ||
| plane drops package; superman on ground flys at angle then horizontal to meet package | Introductory Physics Homework | 1 | ||
| I want to make put a control package on a R/C plane | Mechanical Engineering | 2 | ||
| Taylor's Formula in Higher Dimension/Higher order Total differentials | Calculus & Beyond Homework | 3 | ||
| Separating a higher-order ODE into 1st-order ODEs | Calculus & Beyond Homework | 0 | ||