- #1

chahmquahk

- 9

- 0

You are using an out of date browser. It may not display this or other websites correctly.

You should upgrade or use an alternative browser.

You should upgrade or use an alternative browser.

- Python
- Thread starter chahmquahk
- Start date

In summary, the speaker has been conducting simulations using Verlet integration on Mathematica and is looking to generate maps of phase space with 25,000 initial points. They are currently using 1000 points and each simulation takes 15 minutes with CompiledFunctions. They are wondering if using Python would be faster and if there are any other ways to optimize computation. They also mention comparative stats between Julia and Python, with the speaker personally favoring Julia due to its similarity to MATLAB.

- #1

chahmquahk

- 9

- 0

Technology news on Phys.org

- #2

jedishrfu

Mentor

- 14,937

- 9,401

https://sciencehouse.wordpress.com/2014/06/29/julia-vs-python/

Personally I think Julia has the edge over many of these languages and it has a syntax similar to MATLAB which is the primary engineering numerical analysis language today taught at many universities and carried over to industry.

- #3

chahmquahk

- 9

- 0

Thanks!

In Python, speed is typically measured in terms of execution time or processing time, which is the amount of time it takes for a program to run. In Mathematica, speed is measured in terms of timing, which is the amount of time it takes for a function or expression to evaluate.

It depends on the specific task or function being performed. Python is generally faster for simple arithmetic and basic operations, while Mathematica may be faster for complex mathematical calculations and symbolic expressions. Additionally, the efficiency of a program also depends on the coding skills of the programmer.

There are several factors that can affect the speed of Python and Mathematica, including the hardware and operating system on which the code is running, the complexity of the code, and the specific functions or libraries being used. Additionally, the programming techniques and algorithms used can also impact the speed of a program.

Yes, the speed of both Python and Mathematica can be improved through various methods, such as optimizing code, using more efficient algorithms, and utilizing parallel processing or multithreading techniques. Additionally, using libraries or packages specifically designed for performance can also improve the speed of a program.

It ultimately depends on your specific needs and the type of tasks you need to perform. Both Python and Mathematica have their strengths and weaknesses in terms of speed, so it is best to evaluate your requirements and choose the language that is most suitable for your particular use case.

- Replies
- 1

- Views
- 3K

- Replies
- 6

- Views
- 5K

- Replies
- 2

- Views
- 2K

- Replies
- 2

- Views
- 16K

- Replies
- 8

- Views
- 2K

- Replies
- 29

- Views
- 3K

- Replies
- 2

- Views
- 10K

- Replies
- 4

- Views
- 5K

- Replies
- 9

- Views
- 3K

Mathematica
Mathematica vs gnuplot vs matplotlib (efficency)

- Replies
- 1

- Views
- 8K

Share: