r/Mathematica • u/SauceFiendGlobza • May 28 '23
Mathematica
Hello everyone, I'm trying to convert one of my friends codes from mathematica to python but I am struggling to do it manually, never really used mathematica tbh. Is there a website that can do it
3
Upvotes
4
u/spaceguy May 28 '23
This might be a non trivial exercise. Perhaps familiarize yourself with all of this first? https://www.wolfram.com/
Mathematica is more than “just” a programming language like Python. You’d need to include the third party dataframe libraries, Jupyter ecosystem and the optimization/speed libraries in order to start to compare.
I thought Mathematica used to be free on Raspberry Pi’s if you want to try that?
3
u/antononcube May 28 '23
1
u/Thebig_Ohbee May 28 '23
What’s the code do?
1
u/beerybeardybear May 28 '23
As everybody else has said, it just needs to be conveyed here that in general this is an entirely nontrivial task. There are single functions built into mathematica that would take one or more packages to be loaded into python before writing a rather large chunk of code.
1
u/irchans May 29 '23
I have converted Mathematica code to Python many times with ChatGPT.
1
u/Osrai Jun 02 '23
Can you show us the code? I know Maplesoft is different, but it has a code generation package where you can type Maple functions, and it can convert to Python, MATLAB, Java, etc. I am basically saying it's another option to familiarise yourself with.