+ 7
Most suited for solving math problems
Hi there, fellow code-philes :) What is, according to your experience, the most suited ( as in most efficient and why not easiest) language for solving math problems? - say, for instance, I'd like to raid the Project Euler problem sets in the best way possible. Thanks for your consideration and help.
7 Respostas
+ 3
If we talk about computationally complex problems with big amounts of data, let's discuss suitable options:
1) Python - easy in it's basics, but if you want your program to work fast, you'll need to work hard and learn many things about code optimization and special libraries.
2) C++ - very popular tool for this kind of task and for your concrete task as well. It is faster "from the box" because of using compilation, not interpreter. But in C-languages you have to spend you time thinking about memory management and it's ain't so easy for beginners.
3) Fortran - it's classical language for science and engineering. It's unpopular nowdays because it was originally developed for science, not for businesses, but many scientific programs for complex calculations which are used today are written in Fortran. Sometimes it's even faster, than C++, and similar in complexity.
4) Julia is modern language, trying to combine simplicity of Python and high speed of C++. I've heard, it's very popular for calculations in physics. If you want to become a physicist or just want to learn something really new...
5) R - good for solving equations and making plots. Actually, for such purposes there is no big difference in matlab, matcad or R. If math is you key knowledge it's you way. But with big data you can obtain big problems. Python will run faster, complexity of development is comparable.
6) Java is really in between python and C++ both in speed in complexity.
So, you can make your own decision :).
In all cases you can obtain good accuracy.
Good luck!
+ 6
I see, thanks for the answers guys ^_^
+ 2
Python does math very well
+ 2
Python = Charm
+ 2
Python for the win!
+ 1
Oh, thank you so much! ^_^
@Mokrane Kara, thanks as well, I'll check that right away :)
+ 1
R is very good to deal with math and big data, and the Rmarkdown makes R more interesting to people who want share there work and collaborate with others, but Python is actually doing the wright way. if you want more details Google "R vs Python"