Skip to content
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

Extend .subs to accept keyword type syntax, i.e. .subs(a = 2*c, b=1, d=sin(x),...) #17

Open
gutow opened this issue Sep 7, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@gutow
Copy link
Owner

gutow commented Sep 7, 2022

For the most naive users the following behavior would be the most natural for substituting into an equation. This behavior is implemented in the SageMath package, but I believe it uses preparsing.

The basic idea is that the following two statements should be equivalent given an equation eq1 = Eqn(a,b/c):

  • eq1.subs({a:1,b:c})
  • eq1.subs(a=1,b=c)
    It may be possible to play tricks with **kwargs to make this work.
@gutow gutow added the enhancement New feature or request label Sep 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant