Re: Which computer language program is best for undergrads?
- From: Joshua Cranmer <Pidgeot18@xxxxxxxxx>
- Date: Mon, 16 Jun 2008 19:51:31 -0400
gk712@xxxxxxxxx wrote:
I will be starting at a 4-yr institution for a math degree.
The school material states that the student should be learning a high-
level computer language such as Fortran, C, or C++.
There are dozens of languages, expanding the pool also to languages such as R, Mathematica, Maple, Matlab, Java, python, perl, etc.
I personally have not seen to many guides on programming languages for mathematical purposes, but I can summarize my opinions.
In short:
Fortran - oldest major language; it was designed for engineers originally, so it will look more foreign to programmers. Despite its age, it is one of the most heavily-used languages on supercomputers.
C/C++ - the core of these are the same. I believe statistics give the two about equal amounts, although that is dubious since C can be easily called from C++. Many libraries are C, though, so C would probably be preferred over C++ simply from a neophyte's perspective.
R, Mathematica, Maple, Matlab: All of these are specifically designed for mathematics. The latter three all require specific mathematics packages (although Octave as an open source near-implementation of matlab). I've used each of these a tad, but I'm willing to bet that these are not what the school intends for learning.
Java - One of the most popular languages; typically used in introductory programming courses. For that reason, the largest body of material can generally be found in Java, although its default library setup isn't terribly mathematics-welcoming.
C# - Similar to Java, although it is a Microsoft derivative. I haven't played around here much, but I think it's more welcoming to mathematics work, although not from a cross-platform point of view.
Python, ruby, perl, etc. - these are your newer languages, which tend to have more cult-ish proponents. I would stay away from these, as they are your scripting languages, and less concern themselves with mathematics work.
My recommendation is to pick up Fortran, C, or C++, with no real preference between them. All of these have vibrant communities and are so widely used that the largest mathematics packages (e.g., lapack) will be accessible from them. And don't worry about them dying away; they've been here and heavily used for several decades, and still will be used through your working career.
I might post this question in a programming group as well.
This is not a good question for comp.lang.*, since it tends to invite flame wars. The (good) advice you will get will most likely amount to the following: "Pick a language that suits you well and stick to it."
.
- Follow-Ups:
- Re: Which computer language program is best for undergrads?
- From: David C . Ullrich
- Re: Which computer language program is best for undergrads?
- From: Peter Webb
- Re: Which computer language program is best for undergrads?
- References:
- Prev by Date: Re: Divisible by 7.
- Next by Date: Re: Number of triangles on a 2- D lattice
- Previous by thread: Re: Which computer language program is best for undergrads?
- Next by thread: Re: Which computer language program is best for undergrads?
- Index(es):
Relevant Pages
|