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

Add a coefficient function #236

Closed
dpsanders opened this issue May 15, 2021 · 2 comments · Fixed by #677
Closed

Add a coefficient function #236

dpsanders opened this issue May 15, 2021 · 2 comments · Fixed by #677

Comments

@dpsanders
Copy link

Add a coefficient function that extracts the multiple of a given subexpression in an expression,

e.g.

coefficient(3x + 2y, x) == 3

coefficient(x * y, x) == y

coefficient(x^2 + y, x^2) == 1

@dpsanders
Copy link
Author

This should not use derivatives but should just extract the multiplier.

@YingboMa
Copy link
Member

Duplicate #216

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 a pull request may close this issue.

2 participants