-
Notifications
You must be signed in to change notification settings - Fork 9
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
SingluarException (not sure why) #6
Comments
Not sure either: unfortunately the code didn't cite any references. From what I understand, this is a known problem with the Remez algorithm. I think there are some potential modifications to work around it, but if you widen the interval so that is no longer symmetric, you get a valid answer:
|
That mostly works, but if I only modify the interval slightly, I get very high errors (in the hundreds). Is there any way to prevent this from happening automatically? |
Probably, but I don't know. |
Might be possible to try something like this: https://people.maths.ox.ac.uk/trefethen/vander_revised.pdf |
When I run
ratfn_minimax(x -> x == 0 ? one(x) : expm1(x)/x, (-1/512,1/512), 2, 0,(x,y) -> x)[3]
, I get the following error.That said,
ratfn_minimax(x -> x == 0 ? one(x) : expm1(x)/x, (-1/512,1/512), 3, 0,(x,y) -> x)[3]
works just fine. Is there a way to make this not happen or work arround it?The text was updated successfully, but these errors were encountered: