C/C++ Scientific Programming: C, C++ & Mathematica Explored

AI Thread Summary
The discussion highlights the importance of learning C and C++ programming for undergraduates in Pure Mathematics, despite the availability of tools like Mathematica. Participants emphasize that C and C++ offer flexibility for custom code development and are crucial for performance in scenarios like massively parallel programming, where they outperform Mathematica. The conversation also notes the practical applications of C/C++ in real-world programming, suggesting that these languages are widely used beyond mathematical contexts. Additionally, Python is mentioned as a viable alternative due to its numerical and symbolic capabilities, making it a popular choice among programmers. The historical context of programming languages is acknowledged, with references to the evolution of coding practices over the past two decades.
Barioth
Messages
47
Reaction score
0
Hi everyone, as an undergrad in Pure math I have to take two classes of C and C++ programing.


I also have to take a mathematica class. I really donMt mind because I love programing and I'll probably get more class like this. But I'm wondering what good is C and C++ when one can use mathematica witch seem to be better at evaluating mathematical and numerical stuff.


What do you think?

Thanks for passing by!
 
Technology news on Phys.org
Re: Scientific Programing

To me it is very important to study a programming language . Sometimes you need to evaluate things that Mathematica can't or computation time exceeded. If you have your own code then you can adjust it the way you want and improve it as much as you can. For example ,you can easily implement series and evaluate an approximated value.
 
Re: Scientific Programing

As a note: in some situations, such as massively parallel programming, C and C++ are the only languages used, because they run much faster than Mathematica or anything else. C and C++ are typically the tool of choice on a super-computer. Anything you can do on a computer, you can do in C++. It's not always the best tool, but often it is.
 
Re: Scientific Programing

That make a lot of sense!

Thanks!
 
Re: Scientific Programing

In the real world it's not all math or mathematica.
A programming language like C/C++ is used a lot however.
 
Re: Scientific Programing

I like Serena said:
In the real world it's not all math or mathematica.
A programming language like C/C++ is used a lot however.

Maybe you should consider Python, it has extensions to give it the numerical power of Matlab (numpy, scipy and matplotlib), and to give it symbolic capability (sympy) while still being a GP scripting language. Also it is free ...

.
 
I may be dating myself (think 2 decades ago), but one thing I liked about C was the ability to embed assembler in the code for bottlenecks. But, this was in the days when memory was at a premium. (Happy)
 
MarkFL said:
I may be dating myself (think 2 decades ago), but one thing I liked about C was the ability to embed assembler in the code for bottlenecks. But, this was in the days when memory was at a premium. (Happy)

Ten years ago we wrote DSP code in plain C, today the default seems to be C++ (when we aren't using domain specific tools) despite the overheads.

.
 

Similar threads

Replies
7
Views
2K
Replies
9
Views
2K
Replies
19
Views
4K
Replies
31
Views
3K
Replies
17
Views
4K
Replies
21
Views
4K
Replies
26
Views
5K
Back
Top