1,105,409 Community Members

Best math programming language?

Member Avatar
Romil797
Junior Poster in Training
51 posts since May 2009
Reputation Points: 0 [?]
Q&As Helped to Solve: 3 [?]
Skill Endorsements: 0 [?]
 
0
 

As you folks may know, I love math! I know almost all programming languages, but which one should I use for math. Basically, I want:

Easy type conversion
I don't care if it is object-oriented or not'
Can handle LARGE numbers
And speed!

I do not need graphical features, just math!

Member Avatar
\007
Junior Poster in Training
61 posts since Apr 2011
Reputation Points: 7 [?]
Q&As Helped to Solve: 8 [?]
Skill Endorsements: 0 [?]
 
0
 

I don't know how you feel about it-- but I would use Perl. Perl generally has a "no limits" ideology. It's not the fastest language around, but it's really simple to learn and you can do a lot quickly with the code. It's my favorite language for solving algorithm/math problems (like those at Project Euler).

If speed becomes an issue with Perl you could always do some inline C code to try an speed it up.

Member Avatar
Momerath
Senior Poster
3,830 posts since Aug 2010
Reputation Points: 1,327 [?]
Q&As Helped to Solve: 664 [?]
Skill Endorsements: 19 [?]
Featured
 
1
 
Member Avatar
DavidB
Posting Pro in Training
433 posts since Jul 2006
Reputation Points: 44 [?]
Q&As Helped to Solve: 33 [?]
Skill Endorsements: 27 [?]
 
1
 

Everybody is going to have their favorite.

Historically, FORTRAN has always been the language favored for hardcore scientific/math programming, and there is such a large code base out there, I doubt you will get away from it completely for a long time.

Alternately, people like the language they happen to know. I know C, C++, and Javascript, so I like writing code in those languages. Speed isn't an issue for me, and I am happy with the 16 or so decimal places of accuracy these langauges give me.

I suppose it depends on the application and intended audience. For example, if your boss tells you to program in, say, Java, that would become your favorite language.

Member Avatar
darkagn
Veteran Poster
1,199 posts since Aug 2007
Reputation Points: 279 [?]
Q&As Helped to Solve: 216 [?]
Skill Endorsements: 21 [?]
 
1
 

MATLAB is another popular mathematical scripting language.

Member Avatar
Rashakil Fol
Super Senior Demiposter
2,596 posts since Jun 2005
Reputation Points: 982 [?]
Q&As Helped to Solve: 209 [?]
Skill Endorsements: 42 [?]
Team Colleague
 
1
 

C or C++ for things that need to be pretty fast,
Python with the NumPy library for things that you would normally use Matlab for,
Fortran for things that really need to run on a supercomputer and run fast, or if you are using libraries written in Fortran,
Haskell or O'Caml for non-numerical computing math problems that are interesting and difficult.

Member Avatar
eskimo456
Junior Poster in Training
54 posts since Dec 2010
Reputation Points: 0 [?]
Q&As Helped to Solve: 2 [?]
Skill Endorsements: 0 [?]
 
0
 

Matlab is good for matrix manipulation and general math. Easy and quick to implement items and quite intuitive, it does differ quite dramatically from other languages such as c etc but worth a look. Only really good if performance is not a main concern as it does have a habit of eating up as much memory as it can. It also is able to manipulate images and sound easily.

Member Avatar
ronnieaka
Junior Poster in Training
62 posts since May 2009
Reputation Points: 0 [?]
Q&As Helped to Solve: 0 [?]
Skill Endorsements: 0 [?]
 
0
 

its not like a programming language will take years to execute your applications, so just stick to one, learn to optimize your code, and you got what you want

Member Avatar
karlamadeus
Newbie Poster
4 posts since May 2011
Reputation Points: 0 [?]
Q&As Helped to Solve: 0 [?]
Skill Endorsements: 0 [?]
 
0
 

Python is a lot of fun, and its quite logical in regard to math.

Member Avatar
pyTony
pyMod
6,103 posts since Apr 2010
Reputation Points: 818 [?]
Q&As Helped to Solve: 1,056 [?]
Skill Endorsements: 42 [?]
Moderator
Featured
 
0
 

Python is a lot of fun, and its quite logical in regard to math.

And for maths 'batteries included' with Python nothing beats Sage.

You
This article has been dead for over three months: Start a new discussion instead
Post:
Start New Discussion
View similar articles that have also been tagged: