A proposal to integrate Mathematica with several programming languages like Java, Python, PHP, Ruby, etc.
- Install Mathematica on your machine;
- Check if the Mathematica command line is working:
- Type
MathKernel
; - Write
1+1
; - Press
Enter
and check the result; - Type
Ctrl+D
to quit.
- Type
- Check if the MathematicaScript path is correct for your environment in the file
src/main/mathematica/proxy.m
:- If the path
#!/usr/local/bin/MathematicaScript
is not the correct one for your envirnonment you need to update it first.
- If the path
- Choose your favorite language:
- Java:
- Install Java and check if the installation is ok;
- Go to
src/main/java
; - Type
java Proxy Zeta[2]
; - Check if the result is correct.
- PHP:
- Install PHP and check if the installation is ok;
- Go to
src/main/php
; - Type
php proxy.php Zeta[2]
; - Check if the result is correct.
- Python:
- Install Python and check if the installation is ok;
- Go to
src/main/python
; - Type
python proxy.py Zeta[2]
; - Check if the result is correct.
- Ruby:
- Install Ruby and check if the installation is ok;
- Go to
src/main/ruby
; - Type
ruby proxy.rb Zeta[2]
; - Check if the result is correct.
- Java: