What Programming Language Can Handle 30-Digit Integers and Matrices for Free?

  • Context: High School 
  • Thread starter Thread starter approx
  • Start date Start date
  • Tags Tags
    Language Programming
Click For Summary

Discussion Overview

The discussion revolves around finding a programming language that can handle 30-digit integers and matrices for free, particularly in the context of number theory problems. Participants share their experiences and recommendations regarding suitable programming languages and tools.

Discussion Character

  • Exploratory
  • Technical explanation
  • Debate/contested

Main Points Raised

  • One participant expresses the need for a free programming language that can handle large numbers and matrices for a number theory problem.
  • Another participant suggests using Octave as a potential solution.
  • A different participant recommends Pari, claiming it is better than Octave for number theory applications.
  • It is mentioned that 30-digit integers can be handled natively in 64-bit gcc, with a focus on speed.
  • A participant inquires about how to handle 30-digit integers in gcc, expressing interest in computing multiplies mod a large number.
  • Another participant explains that the native type __int128_t can be used for this purpose.
  • It is noted that any language with "Big Integers" should work, with Java and Haskell mentioned as examples, where Haskell is noted to be faster for mathematical problems.

Areas of Agreement / Disagreement

Participants present multiple competing views on which programming language or tool is best suited for handling large integers and matrices, with no consensus reached on a single solution.

Contextual Notes

Participants discuss various programming languages and their capabilities regarding large integers and matrix operations, but there are no detailed explanations of limitations or specific mathematical implementations provided.

Who May Find This Useful

Individuals interested in programming languages for mathematical computations, particularly in number theory, may find this discussion relevant.

approx
Messages
42
Reaction score
0
I've been looking for a free download of a programming language that is easy to use and handles large numbers for a number theory problem I'm working on. I will report my results here after I use it. My TI isn't powerful enough and my other programmable calculator that I downloaded, graphcalc, doesn't do matrices. I'm guessing I need something that handles 30 digit integers, but the more the better. And of course it needs to handle matrices. Any suggestions? Thank you.
 
Physics news on Phys.org
approx said:
I've been looking for a free download of a programming language that is easy to use and handles large numbers for a number theory problem I'm working on. I will report my results here after I use it. My TI isn't powerful enough and my other programmable calculator that I downloaded, graphcalc, doesn't do matrices. I'm guessing I need something that handles 30 digit integers, but the more the better. And of course it needs to handle matrices. Any suggestions? Thank you.

Pari is excellent, and much better than Octave for number theory.
http://pari.math.u-bordeaux.fr/
 
You can handle 30 digit integers natively in 64-bit gcc. No other programming language will even come close in terms of speed.
 
Thanks for the input and the links. I'll try these out.
 
hamster143 said:
You can handle 30 digit integers natively in 64-bit gcc.

How? That would be useful. For example, that would let me compute multiplies mod a number <= 316227766016837 natively. (I'd otherwise be limited to 4294967296, which is less useful.)
 
Last edited:
CRGreathouse said:
How? That would be useful. For example, that would let me compute multiplies mod a number <= 316227766016837 natively.

You use the native type __int128_t.
 
Any language with "Big Integers" (arbitrary precision) integers should work (computational speed not being a factor). Java has a pretty basic implementation. Haskell has one as well, and is a bit faster and is often better for mathematical problems.
 
hamster143 said:
You use the native type __int128_t.

Nice, I'll have to play with that.
 

Similar threads

  • · Replies 17 ·
Replies
17
Views
3K
  • · Replies 8 ·
Replies
8
Views
3K
  • · Replies 3 ·
Replies
3
Views
4K
  • · Replies 12 ·
Replies
12
Views
3K
  • · Replies 1 ·
Replies
1
Views
1K
  • · Replies 11 ·
Replies
11
Views
3K
  • · Replies 5 ·
Replies
5
Views
4K
  • · Replies 8 ·
Replies
8
Views
6K
  • · Replies 15 ·
Replies
15
Views
3K