Skip to content

Make Subs and Derivative classes closer to SymPy#128

Closed
ShikharJ wants to merge 3 commits intosymengine:masterfrom
ShikharJ:Issue119
Closed

Make Subs and Derivative classes closer to SymPy#128
ShikharJ wants to merge 3 commits intosymengine:masterfrom
ShikharJ:Issue119

Conversation

@ShikharJ
Copy link
Copy Markdown
Member

@ShikharJ ShikharJ commented Mar 8, 2017

Relevant: #119

@ShikharJ ShikharJ changed the title [WIP] Make Subs and Derivative classes closer to SymPy Make Subs and Derivative classes closer to SymPy Mar 12, 2017
@ShikharJ
Copy link
Copy Markdown
Member Author

@isuruf I am not confident that this is how it is supposed to be implemented. Please review and suggest revisions.

@ShikharJ
Copy link
Copy Markdown
Member Author

Ping @isuruf.

@ShikharJ
Copy link
Copy Markdown
Member Author

Ping @isuruf.

return diff(a.expr, a.variables)
elif isinstance(a, sympy.Subs):
return Subs(a.expr, a.variables, a.point)
return Subs.subs(a.expr, a.variables, a.point)
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Make this a.expr.subs(a.variables, a.point)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This won't work either.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So, should we first have standalone class of expr and function of subs?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ping @isuruf.

_classes = (symengine.Subs,)

def __new__(cls, *args):
return symengine.Subs.subs(*args)
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@isuruf How should this call be modified, as there isn't any standalone subs function in the wrapper?

@isuruf isuruf modified the milestone: 0.3.0 May 11, 2017
@isuruf
Copy link
Copy Markdown
Member

isuruf commented Jun 3, 2017

Replaced by #145

@isuruf isuruf closed this Jun 3, 2017
@ShikharJ ShikharJ deleted the Issue119 branch June 3, 2017 07:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants