power_expand function
Expand powers and logarithms of products and powers.
How to write it
power_expand(expr)
- expr
- Any expression: a number, a formula, a list or a matrix. Takes an expression.
Examples
power_expand(log(x^2))In the solver,
Open in the solverpower_expand(log(x^2))gives2ln(x).
Functions its examples use
- log
Logarithm: natural with ln, or to any base with log.
Related functions
- function_expand
Rewrite special functions of shifted arguments in terms of simpler ones.
- complex_expand
Expand an expression assuming its variables are real.
- expand
Multiply out products and powers into a sum.
- resultant
Resultant of two polynomials in a variable.
- polynomial_remainder
Remainder of a polynomial division.
- simplify
Simplify an expression, optionally under assumptions.