5.13.23 Substitute a subexpression by another expression: algsubs
The algsubs command takes two arguments, an equation
expr1 = expr2 between two expressions and another expression. algsubs returns the last expression with expr1
replaced by expr2.
Input: