New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
example modified #12240
example modified #12240
Conversation
@Yathartha22 You have made a good point here. |
Surely I would do it right away. |
@kshitij10496 I have added the docstring. Is it enough. Please check and let me know. |
sympy/solvers/bivariate.py
Outdated
``X`` has to be a varaible, by default which is `None`. If ``X`` is not `None` | ||
only those terms will be selected that contains the variable specified | ||
as ``X`` and the term returned would be one of these. | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess the statement can be simplified to:
If
X
is notNone
, then the function returns the term composed with the mostfunc
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If
X
is notNone
, then the function returns the term composed with the mostfunc
having thespecified variable
I think having the specified variable
should also be added because even if X
is None it would return the term composed with the most func
.
what do you suggest?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah ! You are correct.
Kindly modify accordingly.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Okay :)
sympy/solvers/bivariate.py
Outdated
@@ -47,6 +47,10 @@ def _mostfunc(lhs, func, X=None): | |||
``func`` can be a function (exp, log, etc...) or any other SymPy object, | |||
like Pow. | |||
|
|||
``X`` has to be a varaible, by default which is `None`. If ``X`` is not `None` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Typo: varaible
-> variable
+1 |
I guess I have made the necessary changes. |
+1 |
I actually don't know how to squash but I will try to google it and find out. |
I found this: Is this the right procedure? |
yes, this is a right approach @Yathartha22 . |
c7148dc
to
c1cfab6
Compare
thanks @ranjithkumar007 @kshitij10496 I squashed the commits into one. Now, is it okay? |
Awesome @Yathartha22 ! Way to go. ++1 |
thanks @kshitij10496 :) |
@Yathartha22 , Its not the case that every time you need to squash your commits in a PR..Squashing is done to have a clear and concise git history that easily documents the changes.this in turn increases the readability of the history.So you need to do this only when the |
Thanks @ranjithkumar007 @Yathartha22 As @ranjithkumar007 suggested, update your commit message accordingly. |
c1cfab6
to
ea94fb0
Compare
thanks @ranjithkumar007 for the explanation and suggestion |
+1 , looks good to me . |
Thanks! It's in. |
Thanks @smichr for the merge |
// edited by skirpichev Based on sympy/sympy#12240 Signed-off-by: Sergey B Kirpichev <skirpichev@gmail.com>
// edited by skirpichev Based on sympy/sympy#12240 Signed-off-by: Sergey B Kirpichev <skirpichev@gmail.com>
In
bivariate.py
function named_mostfunc
has an example that is repeated, therefore I tried to modify the example so that one finds it easier to understand what the function does. Following is what I modified:This example would help one understand that the result also depends on the variable specified, as, if variable(3rd param) is defined it would work accordingly as given in the docs example: