-
Notifications
You must be signed in to change notification settings - Fork 33
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
ValueError: math domain error #27
Comments
Hello @iSWORD, Thank you for the feedback. In fact, this is a known issue for the method I implemented (see issue #19), the term Lines 188 to 190 in 5ed813b
Represents the Line 191 in 5ed813b
This time shift is then added to or subtracted from Dohr time to calculate times for other prayers. For example, in the Lines 256 to 257 in 5ed813b
The issue is, for zones with latitudes beyond [48.5 North, 48.5 South], the used method gives a value for In the issue number #19, I've listed two references which talks about this specific case; however, I didn't find the time to test and implement it. I will plan to do it during my vacation next June. Thank you again for pointing this issue. Ramadan Mubarak! |
Duplicate of #19 |
The following inputs:
will result in a
ValueError: math domain error
insidepraytimes@_get_time_for_angle
when trying to evaluatesqrt(-s * s + 1)
because the value of-s * s + 1
is negative.I wanted to submit a patch instead of reporting the issue but I have no idea what all the variables represent :(
The text was updated successfully, but these errors were encountered: