A physicist shared with me his Astrophysics software to run on Mathematica Notebook. It consists of a page of statements of constants and initialization of variables, followed by another page of calculations in a large for loop. The calculations use the NDSolve() function and the FindRoot() function. Without typing in several pages of this highly compact code, is there a way to import it into Mathematica and then run the software ? When I open the notebook file using File-Open, I get a 3-page listing of the code and the result, but what I would really like to do is to change the inputs and run the software in Mathematica and create new output. I would be grateful for any advice you could provide - thank you.
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| how to `get` file and execute at notebook open time | 1 | 5270 | January 22, 2015 | |
| How do I run programs from Mathematica 5 or 6 in Mathematica 9 ?? | 2 | 3699 | December 10, 2013 | |
| Running Mathematica notebooks from linux command? | 3 | 20356 | May 20, 2016 | |
| Evaluation of notebook on Windows | 1 | 10898 | September 16, 2015 | |
| Run python code from a mathematica notebook? (Mac OS) | 5 | 9536 | January 17, 2019 |