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

Error: CQ("(x^2)^(1/2)").toString() = "x" #123

Open
TenobaalTotenamsel opened this issue Feb 22, 2016 · 1 comment
Open

Error: CQ("(x^2)^(1/2)").toString() = "x" #123

TenobaalTotenamsel opened this issue Feb 22, 2016 · 1 comment

Comments

@TenobaalTotenamsel
Copy link

There is a Problem with the squareroot of a variable:

The squareroot of a quadratic variable is the absolute value of the variable:

False: CQ("(x2)(1/2)").toString() = "x"
Correct: CQ("(x2)(1/2)").toString() = "|x|"

Maybe you can fix that.

Thank You!

@TenobaalTotenamsel TenobaalTotenamsel changed the title Error: Sqrt(x**2) = x Error: CQ("(x2)(1/2)").toString() = "x" Feb 22, 2016
@TenobaalTotenamsel TenobaalTotenamsel changed the title Error: CQ("(x2)(1/2)").toString() = "x" Error: CQ("(x^2)^(1/2)").toString() = "x" Feb 22, 2016
@MatthewJA
Copy link
Owner

Hmm, true. At the moment there's no support for absolute values, but that could be added with the symbolic function framework. If you want to have a crack at fixing this, feel free to submit a pull request.

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