Created
March 12, 2009 00:45
-
-
Save rapha/77844 to your computer and use it in GitHub Desktop.
Interpret single maxima expressions from Rhino Javascript
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var expression = arguments[0] | |
var options = {input:expression, output:''} | |
runCommand('maxima', '--very-quiet', options) | |
var result = options.output.replace(/\s+(.*?)\s+/, '$1') | |
print(result) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment