# Compare MatLab vs Mathematica for CFD | Ric

• Mathematica
• dRic2
Mathematica is more symbolic in nature and its learning curve is much more gentle. As has been mentioned, it has a huge user community which posts everyting, so finding something close to what you need and adapting is it easy.Mathematica is more symbolic in nature and its learning curve is much more gentle. As has been mentioned, it has a huge user community which posts everyting, so finding something close to what you need and adapting is it easy.No, I am suggesting it is different. If you need arbitrary precision I would go with Mathematica. If you need speed I would go with Matlab

#### dRic2

Gold Member
I know a little bit of MatLab (for example I can solve simple, well conditioned, systems of 1st and 2nd order ODE), but I know nothing about Mathematica. I don't know whether or not start to learn how to code in Mathematica or keep studying MatLab.

For example, for CFD (computational fluid dynamics) kind of problems what do you think is better and why?

Thanks
Ric

Why not look for some videos on YouTube to get an idea of Mathematica’s power? Or look for comparative articles on it?

• FactChecker
It depends on what you want to do. Are you looking to solve problems numerically or symbolically?

• FactChecker and jedishrfu
I read a couple of articles, but I'm not very sure I understood the differences. I think Mathematica has a beautiful graphical interface and you can work with symbolic equations very easily. That's cool. On the other hand, I don't see very much difference when it comes to numerical solutions and since most of the time I will have to work with numerical solutions I don't see a clear reason to switch to Mathematica.

If you think Mathematical is better also for numerical solutions let me know why. Thanks.

Personally I think that Mathematica is better symbolically. It does a good job numerically, particularly with arbitrary precision, but seems slow.

Dale said:
It does a good job numerically, particularly with arbitrary precision, but seems slow.
Are you suggesting that here MatLab is better than Mathematica?

dRic2 said:
Are you suggesting that here MatLab is better than Mathematica?
No, I am suggesting it is different. If you need arbitrary precision I would go with Mathematica. If you need speed I would go with Matlab

• Demystifier and dRic2
May I ask which one do you think is better for a student ? I mean, I have a limited amount of time to spend in trying to learn MatLab or Mathematica while studying for my courses and I'd like to choose one. For the next 2 years, as a student, I don't think speed or precision would be issues, so I can't really decide on my "needs". I don't have a lot problems that need to be solved numerically right now, and when I have one usually our professors don't really care about how we solve it

dRic2 said:
Are you suggesting that here MatLab is better than Mathematica?

Matlab is heavily used by scientific and engineering groups for numerical computing jobs. They are well established with a good customer service rating and a lot of online resources to help new users.

dRic2 said:
May I ask which one do you think is better for a student ?
Again, it really dependson what you want to do. Both are useful tools in scientific computing, but they are different. If you were studying to become a chef, would you ask which knife to buy since you only have the time to learn to use one single knife? The answer would then also depend on what you wanted to do. Sure, you could use a bread knife to cut meat, but the result and the process will be worse than if you used a knife designed for the task.

Same thing with Matlab and Mathematica. They are designed to do different things so what you pick should depend on your intentions. You could do some things with Matlab that Mathematica is better for and vice versa, but the process of doing so and the result will suffer more than necessary.

• jedishrfu, DrClaude and dRic2
Thank you all for the replies. I always thought MatLab was better because the majority of people I know (professors) use it instead of Mathematica. Lately I started to hear more and more about Mathematica from new professors of mine and I started think I was wrong. Since in my university MatLab seems to be more popular I think I'm going to stick with it, but if I have time I will try to learn something about Mathematica too.

• jedishrfu
jedishrfu said:
Matlab is heavily used by scientific and engineering groups for numerical computing jobs. They are well established with a good customer service rating and a lot of online resources to help new users.

Mathematica has much better symbolic capability and a huge learning curve, whereas Matlab is more numerical in nature and its learning curve is much more gentle. As has been mentioned, it has a huge user community which posts everyting, so finding something close to what you need and adapting is it easy.

• Demystifier, dRic2 and jedishrfu
dRic2 said:
On the other hand, I don't see very much difference when it comes to numerical solutions and since most of the time I will have to work with numerical solutions I don't see a clear reason to switch to Mathematica.
MATLAB (and Simulink) is the central part of a very extensive set of MathWorks tools for developing, implementing, and testing numerical calculations. That is a major reason that it is so dominant in industries that require code for numerical calculations. Mathematica may have the same capability, but I have never seen any evidence of that and am not very familiar with it.

I know people in the aerospace industry who consider a working knowledge of MATLAB to be a requirement for hiring an employee.

That being said, in the particular application of CFD, the people where I worked used Python a lot. Since CFD is so computationally intensive and Python is relatively slow, I assumed that they used an efficient program to solve the individual problems and used Python as a top-level scripting language to run through a large set of flight conditions and surface positions. I am not aware of any serious use of Mathematica by them in CFD. (But they may have been using it and I may just not have been aware of it.)

Last edited:
• dRic2

## What is the difference between MatLab and Mathematica for CFD?

MatLab and Mathematica are both programming languages commonly used for computational fluid dynamics (CFD). However, MatLab is primarily a numerical computing environment, while Mathematica is a symbolic computation language. This means that MatLab is better suited for numerical calculations, while Mathematica is better for handling symbolic equations. Therefore, the main difference between the two for CFD is the way they handle calculations.

## Which one is better for CFD, MatLab or Mathematica?

The answer to this question depends on the specific needs and preferences of the user. MatLab is more commonly used in the engineering and scientific fields, while Mathematica is more widely used in the mathematics and physics fields. For CFD specifically, MatLab may be better for performing numerical simulations, while Mathematica may be better for analyzing and solving complex equations.

## Can you use both MatLab and Mathematica for CFD?

Yes, it is possible to use both MatLab and Mathematica for CFD. In fact, many researchers and engineers use a combination of both languages to take advantage of their respective strengths. For example, one could use MatLab for numerical simulations and then import the data into Mathematica for further analysis and visualization.

## Which one is easier to learn, MatLab or Mathematica?

Again, this depends on the individual's background and preferences. MatLab may be easier for those with a programming background or those familiar with other similar languages, while Mathematica may be easier for those with a mathematics or physics background. Both languages have extensive documentation and resources available to help with the learning process.

## Is one of these languages more commonly used for CFD in industry?

According to a survey conducted by the American Institute of Aeronautics and Astronautics (AIAA), MatLab is more commonly used for CFD in industry compared to Mathematica. However, this may vary depending on the specific industry and application. It is always best to research and understand the specific needs and requirements before choosing a language for CFD.