Most suited for solving math problems | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 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.

30th Apr 2017, 12:39 AM
Stargazer
Stargazer - avatar
7 Answers
+ 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!
16th May 2017, 6:10 PM
Victoria Tokareva
Victoria Tokareva - avatar
+ 6
I see, thanks for the answers guys ^_^
30th Apr 2017, 6:28 AM
Stargazer
Stargazer - avatar
+ 2
Python does math very well
30th Apr 2017, 1:02 AM
LordHill
LordHill - avatar
+ 2
Python = Charm
30th Apr 2017, 2:51 AM
ahmad shuja
ahmad shuja - avatar
+ 2
Python for the win!
30th Apr 2017, 3:14 AM
Yusuf Malikul Mulki
Yusuf Malikul Mulki - avatar
+ 1
Oh, thank you so much! ^_^ @Mokrane Kara, thanks as well, I'll check that right away :)
16th May 2017, 6:27 PM
Stargazer
Stargazer - avatar
+ 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"
17th May 2017, 7:30 PM
Mokrane Karar
Mokrane Karar - avatar