I need to write a program to calculate the movement of charged particles in an electromagnetic field. The functional is quite simple - it is necessary to solve the system of equations of motion using a numerical method and display the resulting set of points on a three-dimensional graph. The number of points in the trajectory is ~ 10 ^ 5. Which language is best for implementing this program? Any of the proposed will have to study from scratch, so there is no preference. I would be grateful for the advice.
Closed due to the fact that it is necessary to reformulate the question so that it was possible to give an objectively correct answer by the participants Athari , Suvitruf ♦ , Abyx , LEQADA , PashaPash ♦ 19 of December 1515 .
The question gives rise to endless debates and discussions based not on knowledge, but on opinions. To get an answer, rephrase your question so that it can be given an unambiguously correct answer, or delete the question altogether. If the question can be reformulated according to the rules set out in the certificate , edit it .
1 answer
10 ^ 5 is not much in terms of computation, so I would advise you to take a language in which it is more convenient to communicate with graphics. This is either C # / WPF or C ++ / Qt.
Of the benefits of WPF, there are built-in classes for working with three-dimensional objects. Well, or you can not use them, and design the necessary points on the screen plane manually (business, multiply by a 3x2 matrix). Well, you have to somehow cluster the points and display them not all at once, because 10 ^ 5 graphic objects the system may not pull. (Yes, you do not see such detail on the screen.)
The speed of the number of hammerheads should not differ significantly.
As a perverted version, you can write a number on a pure C or Fortran, and visualize the results using a program in a higher level language. But for this you have to learn two languages, so I do not advise.
- Many thanks for the detailed answer. - Boris Komarov
- You are welcome! - VladD 4:05 pm