Skip to content

Instantly share code, notes, and snippets.

@rapha
Created March 12, 2009 00:45
Show Gist options
  • Save rapha/77844 to your computer and use it in GitHub Desktop.
Save rapha/77844 to your computer and use it in GitHub Desktop.
Interpret single maxima expressions from Rhino Javascript
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