-
Notifications
You must be signed in to change notification settings - Fork 53
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
Nasty behaviour of sqrt(x)
#24
Comments
I guess when the constant term is zero. |
Same for |
Errors are thrown using `throw` (`error` is deprecated)
Solves issue #24 throwing an ErrorException; includes tests
I now get x, y = set_variables("x y", order=8)
julia> sqrt(x^2)
ERROR: ArgumentError("The 0-th order TaylorN coefficient must be non-zero\nin order to expand `sqrt` around 0")
in sqrt at /Users/dsanders/.julia/v0.3/TaylorSeries/src/TaylorN.jl:615 but it works for one variable:
|
Yes, you are right; this is something known. In simple terms, This problem does not appear if we construct |
In my opinion, this issue should be closed, but an issue reminding us about this should definitely be open. |
See also discussion in #11 |
I think the following should throw an error instead.
The text was updated successfully, but these errors were encountered: