Help me choose an arbitrary precision program

  • Thread starter Thread starter CRGreathouse
  • Start date Start date
  • Tags Tags
    Precision Program
AI Thread Summary
The discussion centers on the search for a computational tool that can efficiently calculate subquadratic trigonometric functions, specifically the tangent function, with high precision. The user has been using Pari but finds its performance inadequate for large digit calculations, noting that it takes significantly longer as the precision increases. They report that calculating tangent for 10,000 digits takes half a second, while 100,000 digits takes over a minute, and 10 million digits exceeds a week. The user has tested other platforms like Maxima, which also performed poorly, and is seeking recommendations for alternatives such as Mathematica or other libraries that can handle these calculations more efficiently, ideally with programming capabilities to automate the process. They invite others to test their preferred tools with the specific function tan(1) for comparability.
CRGreathouse
Science Advisor
Homework Helper
Messages
2,832
Reaction score
0
This is a crosspost from General Math; I wasn't sure what place was more appropriate.

I'm looking for a tool to solve a problem I've been working on. In particular, I want something that implements subquadratic trig functions -- in my case I'm looking for the tangent. I've been using Pari, but its tangent routine seems to be \mathcal{O}(n^2) or \mathcal{O}(n^2\log n) based on timing, and for high precision this simply takes too long. 10,000 digits in Pari takes half a second, but 100,000 takes more than a minute, and ten million takes over a week, which isn't feasible.

Any suggestions? Can anyone test their preferred platform (Math'ca, Maple, etc.) to see how long these take? I was testing tan(1) if you want comparability. I tested Maxima, but it seemed to be inappropriate for the task: it uses an \mathcal{O}(n^2\log n)\textrm{-ish} algorithm, and took at least 30 times longer than Pari.

I could use a stand-alone system like Mathematica or a library, whatever I can find. I will need programming ability (too many problems to type by hand), but that shouldn't be hard to find.
 
Dear Peeps I have posted a few questions about programing on this sectio of the PF forum. I want to ask you veterans how you folks learn program in assembly and about computer architecture for the x86 family. In addition to finish learning C, I am also reading the book From bits to Gates to C and Beyond. In the book, it uses the mini LC3 assembly language. I also have books on assembly programming and computer architecture. The few famous ones i have are Computer Organization and...
I have a quick questions. I am going through a book on C programming on my own. Afterwards, I plan to go through something call data structures and algorithms on my own also in C. I also need to learn C++, Matlab and for personal interest Haskell. For the two topic of data structures and algorithms, I understand there are standard ones across all programming languages. After learning it through C, what would be the biggest issue when trying to implement the same data...

Similar threads

Back
Top