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

Differentiation of x^x returns wrong expression #362

Closed
ronnycsharp opened this issue Oct 6, 2020 · 2 comments · Fixed by #363
Closed

Differentiation of x^x returns wrong expression #362

ronnycsharp opened this issue Oct 6, 2020 · 2 comments · Fixed by #363
Assignees
Labels
Milestone

Comments

@ronnycsharp
Copy link

Describe the bug
The differentiation of x^x returns a wrong result.

To Reproduce
Steps to reproduce the behavior:

var proc = new Processor();
var exp = proc.Parse("x^x");
var diff = proc.Differentiate(exp);

Expected behavior
The expected result should be x^2*(ln(x)+1)

Actual behavior
but it returns x*x^(x-1)

@sys27 sys27 added this to the xFunc 4.0.0 milestone Oct 6, 2020
@sys27 sys27 added the bug label Oct 6, 2020
@sys27
Copy link
Owner

sys27 commented Oct 6, 2020

As I understand, the expected result should be: (x^x) * (ln(x) + 1).

@sys27
Copy link
Owner

sys27 commented Oct 6, 2020

Fixed. Thank you for reporting.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants