| Class | LTF::Maxima |
| In: |
lib/ltf/maxima.rb
|
| Parent: | Object |
| MaximaWait | = | 0.00001 |
| ValidInputPattern | = | /^[^;]+;$/ |
| OutputPromptPattern | = | /^\(\%o\d+\) (.*)\n/m |
| InconsistentPattern | = | /^Inconsistent equations/ |
| TooManyUnknownsPattern | = | /^More unknowns than equations/ |
| TooManyEquationsPattern | = | /^More equations than unknowns/ |
| SolvedVariablePattern | = | /([^,\[\d\s]\w*) = ([^,\]]+)/ |
| last_response | [R] |
Create a new Maxima object. Raises a MaximaError if Maxima could not be run. Raises InvalidInput if max_input is invalid.
Strip the response out of the read string. Raises Inconsistent if inconsistent input was given. Raises Invalid if invalid input was given.
Solve a system of equations, returning a Hash of Symbol variable names and their values. Raises Maxima::TooManyUnknowns or Maxima::TooManyEquations if the solver string is invalid.