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

simplification with exponents #174

Open
ribrdb opened this issue Dec 18, 2023 · 1 comment
Open

simplification with exponents #174

ribrdb opened this issue Dec 18, 2023 · 1 comment

Comments

@ribrdb
Copy link
Contributor

ribrdb commented Dec 18, 2023

I would expect these to simplify to zero:

simplify(sqrt(2x)-(sqrt(2)*x^(1/2)))
(2*x)^(1/2)-2^(1/2)*x^(1/2)
simplify(sqrt(2e)-(sqrt(2)*e^(1/2)))
(2*e)^(1/2)-2^(1/2)*exp(1/2)
@soegaard
Copy link

I would expect these to simplify to zero:
simplify(sqrt(2x)-(sqrt(2)*x^(1/2)))

I agree.

The rule sqrt(xy)=sqrt(x)sqrt(y) can't be used in general, when x and y are complex.
But here, we know that x is a positive, real number.

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

2 participants