Skip to content

Commit

Permalink
Example modified and docs added
Browse files Browse the repository at this point in the history
// edited by skirpichev

Based on sympy/sympy#12240

Signed-off-by: Sergey B Kirpichev <skirpichev@gmail.com>
  • Loading branch information
Yathartha22 authored and skirpichev committed Feb 24, 2019
1 parent b60a09e commit 9c30d16
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions diofant/solvers/bivariate.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,15 +36,18 @@ def _mostfunc(lhs, func, X=None):
``func`` can be a function (exp, log, etc...) or any other Diofant object,
like Pow.
If ``X`` is not ``None``, then the function returns the term composed with the
most ``func`` having the specified variable.
Examples
========
>>> _mostfunc(exp(x) + exp(exp(x) + 2), Pow)
E**(E**x + 2)
>>> _mostfunc(exp(x) + exp(exp(y) + 2), Pow, x)
E**x
>>> _mostfunc(exp(x) + exp(exp(y) + 2), Pow, x)
E**x
>>> _mostfunc(exp(x) + exp(exp(y) + 2), Pow)
E**(E**y + 2)
>>> _mostfunc(x, exp, x) is None
True
>>> _mostfunc(exp(x) + exp(x*y), Pow, x)
Expand Down

0 comments on commit 9c30d16

Please sign in to comment.