Skip to content

ExpandAll

ExpandAll(expr)

expands out all positive integer powers and products of sums in expr.

Examples

>> ExpandAll((a + b) ^ 2 / (c + d)^2)
(a^2+2*a*b+b^2)/(c^2+2*c*d+d^2)

ExpandAll descends into sub expressions

>> ExpandAll((a + Sin(x*(1 + y)))^2)
a^2+Sin(x+x*y)^2+2*a*Sin(x+x*y)

ExpandAll also expands heads

>> ExpandAll(((1 + x)(1 + y))[x])
(1+x+y+x*y)[x]

Expand, ExpandDenominator, ExpandNumerator

Implementation status

  • ✅ - full supported

Github