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

return derivative's result as string #301

Open
dyako-baram opened this issue May 3, 2023 · 0 comments
Open

return derivative's result as string #301

dyako-baram opened this issue May 3, 2023 · 0 comments

Comments

@dyako-baram
Copy link

end goal:

i want to be able to do derivative until I get a single number for example:
fx= x^3 + x^2 - 3x -3
fx'=3x^2 +2x-3
fx''=6x-2
fx'''=6

question:

  • MathParser.org-mXparser version: v.5.2.1
  • Framework: .net, .net core, .net standard

How do I achieve what I want to do?

here is a pseudo-code for what I mean:

Expression ex = new Expression("der(x^3 + x^2 - 3x -3 ,x)");
string result=ex.GetDerivativeAsString(); // 3x^2 +2x-3

or

Expression ex = new Expression("der(x^3 + x^2 - 3x -3 ,x)");
string[] resultArray= ex.GetDerivativesAsStringArray();// ["x^3 + x^2 - 3x -3 ","3x^2 +2x-3","6x-2","6"]
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

No branches or pull requests

1 participant