ubsuny / 23-Homework6G2

Apache License 2.0
0 stars 9 forks source link

task 2 tan(x) function #55

Open s4il3sh opened 9 months ago

s4il3sh commented 9 months ago

How did you guys solve the issue of getting the solution for 90, 270, -90, -270, etc. degrees for the solution of tan(x) function. This solution is not right. How you are dealing with it?

tirthbha commented 8 months ago

@s4il3sh I root of tan(X) is pi/2 and that of tanh(x) is 0, so you can chose intervals based on these facts.

s4il3sh commented 8 months ago

yes. i chose the interval based on that but the point is, the rootfinding functions throwing out the roots that have infinite values.