I have to solve about 30 symbolic equations simultaneously. Mathematica is taking more than 24 hours to solve it on a 6 core system and now I have to run that on a cluster. In order to do so I need to convert GUI based code into text user interface code. Any suggestions how to proceed ?
Asked
Active
Viewed 144 times
1
1 Answers
1
Start with a Notebook with your complete set of entries in it.
Select the Input cells that contain the definitions and commands you wish to run
- You can select all Input cells by Alt+clicking the cell bracket of an Input cell
Mark the cells as Initialization Cells using menu Cell > Cell Properties
Use menu File > Save As... and save a Mathematica Package (*.m)
The .m file that you create will contain InputForm expressions for all your definitions and commands.
Mr.Wizard
- 271,378
- 34
- 587
- 1,371
-
-
@Qwerty It is a text format; you could rename .m to .txt if necessary. However I suggest that you do not as Mathematica expects .m and and will use that by default in some cases. How are you planning to use the contents of the file? You should be able to
Getthe file directly. – Mr.Wizard Jul 29 '14 at 13:54
InputForm[HoldForm[your equation here]]? – RunnyKine Jul 29 '14 at 06:28