-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
functions tan
and cot
with multiples of pi
#28943
Comments
On the other hand, the functions
Unfortunately there is no You made a good point. |
tan
and cot
tan
and cot
with multiples of pi
Can we define a |
Is it good practice to replace tangent and cotangent with sine-cosine ratios? I stumbled on the fact that in Julia there is no this function (cotpi and tanpi), and in numpy (as another example) there is no cotangent at all, so I would like to know what can be done? (sorry for bad English) |
Defining accurate versions of all of these trig functions for multiples of pi seems like the right way. |
at least |
Why was this issue closed, @oscardssmith? While there's tanpi now, there still isn't a |
fair enough |
I am interested in the issue and have understood the full thread.
If someone could please review these and provide any feedback or suggestions, it would be very helpful . |
Current definition of
The reason is that
while Line 943 in 3318941
This
See the related issue in A possible way to resolve this problem is to define |
Is it reasonable to expect
tan(π/2) == Inf
to betrue
? Similarly, shouldtan(π) == 0
betrue
?Also, not to labour the point, but I noticed that
cot(π)
threw aMethodError
.The text was updated successfully, but these errors were encountered: