•
|
The LinearSolveSteps command accepts a linear equation expr in the given variable, var, and displays the steps required to solve for that variable.
|
•
|
Note that this command also accepts some nonlinear equations that can be reduced down to linear equations (in other words, you can isolate on one side of the equation, and there is only one solution).
|
•
|
If expr is a string, then it is parsed into an expression using InertForm:-Parse so that no automatic simplifications are applied, and thus no steps are missed.
|
•
|
The implicitmultiply option is only relevant when expr is a string. This option is passed directly on to the InertForm:-Parse command and will cause things like "2x" to be interpreted as 2*x, but also, "xyz" to be interpreted as x*y*z.
|
•
|
A step may show up where the expression is not obviously different from the previous step. This can happen when the underlying data structure is transformed during the step, and it is not obvious that the resulting structure is the same as the original, but just expressed differently. This becomes more apparent when looking at the inert form of the raw data.
|
•
|
The return value is a module that display annotated steps by default. This module also has callable methods and data members: data, numsteps, step, and toMathML.
|
data: a numsteps x 2 array where column 1 is the inert-form expression, and column 2 is the annotation. R:-data[1,1] is the original expression in inert form.
numsteps: the number of steps in the solution, including the original expression.
step(i): a method for displaying individual steps. Calling R:-step(i) displays the ith typeset expression and annotation. Step 1 is the original expression.
toMathML(): a method for converting the sequence of steps and annotations into mathml. The toMathML command optionally takes one or two arguments: (1) a filename, indicating the mathml should be written to the specified file, and (2) the option htmlheader=true, which also causes html tags to be written along with the mathml, thus generating a complete .html page that can be loaded in a browser.
•
|
This function is part of the Student:-Basics package.
|