SUBST

From iMath
Revision as of 18:51, 29 June 2017 by Jrheinlaender (Talk | contribs) (Created page with "{{Keyword | <code>SUBST ( expression | equation , equation | equation list )</code> | 2= Substitute the equation or the list of equations into the ex...")

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Syntax

SUBST ( expression | equation , equation | equation list )


Implemented in iMath since version 2.2.0 or earlier.

Explanation

Substitute the equation or the list of equations into the expression. All substitutions will be done in parallel, which means that after substituting a list of equations like x = y; y = z the expression might still contain the variable y. In this case you need to use SUBSTC instead.

Example

@eq:cubic@ EQDEF x^3 + a x^2 + b x + c = 0

@eq:tsch3@ EQDEF y = x + {a over 3}

EQDEF COLLECT(SIMPLIFY(SUBSTC(@eq:cubic@, SOLVE(@eq:tsch3@, x, 1)),"expand"), y)

This will perform the Tschirnhaus transformation on the cubic equation, reducing it to the depressed form y^3 + p y + q.

See also

SUBSTC SUBSTV