SUBST: Difference between revisions

From iMath
Jump to navigation Jump to search
(Created page with "{{Keyword | <code>SUBST ( expression | equation , equation | equation list )</code> | 2= Substitute the equation or the list of equations into the ex...")
 
mNo edit summary
 
(One intermediate revision by the same user not shown)
Line 4: Line 4:
|
|
2=
2=
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 <code>x = y; y = z</code> the expression might still contain the variable <code>y</code>. In this case you need to use [[SUBSTC]] instead.
Substitute the equation or the list of equations into the expression/equation. All substitutions will be done in parallel, which means that after substituting a list of equations like <code>x = y; y = z</code> the expression might still contain the variable <code>y</code>. In this case you need to use [[SUBSTC]] instead.
|
|
3=
3=
Line 16: Line 16:
|
|
4=
4=
[[SUBSTC]] [[SUBSTV]]
[[SUBSTC]] [[SUBSTV]] [[SUBSTVC]]
}}
}}
[[Category:Manipulation]]
[[Category:Manipulation]]

Latest revision as of 18:50, 19 December 2018

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/equation. 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 SUBSTVC