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

No support for simplifying sqrt() #958

Open
erny123 opened this issue Aug 24, 2023 · 1 comment
Open

No support for simplifying sqrt() #958

erny123 opened this issue Aug 24, 2023 · 1 comment

Comments

@erny123
Copy link

erny123 commented Aug 24, 2023

Something simple:

@variables A
test = 1//2 * sqrt(4*A)
Symbolics.simplify(test, expand=true)

Outputs:
\begin{equation}
\frac{1}{2} \sqrt{4 A}
\end{equation}

or
$\frac{1}{2} \sqrt{4 A}$

If instead, one uses ^(1/2) rather than the square root then it seems to simplify on its own:

@variables A
test = 1//2 * (4*A)^(1/2)

Output:
\begin{equation}
\frac{1}{2} \sqrt{4 A}
\end{equation}

$ A^{0.5}$
I think there should be a way for Symbolics to either parse and convert sqrt to ^(1/2) or for there to be an option in the simplify function

@ohno
Copy link

ohno commented Jan 4, 2024

I also think that it should be supported. This issue is related to an old issue #852.

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