tan(90°)=?

2 replies [Last post]
Blackmist
User offline. Last seen 11 years 32 weeks ago. Offline
Joined: 10/14/2009
Posts:

Hi, I love your app it's been very useful for school; however I don't undersand why tan(90°) gives me 16331.... when tan(90°) is undefined.. maybe there's something I'm missing, any ideas?

Brad Larson
Brad Larson's picture
User offline. Last seen 4 years 22 weeks ago. Offline
Joined: 05/14/2008
Posts:

That must be another floating point glitch. It should be undefined, as you say, but it looks like it's calculating a value just off of true 90 degrees. I'll try to fix that for the next version.

lrsm
User offline. Last seen 10 years 39 weeks ago. Offline
Joined: 08/30/2010
Posts:

how come pi cubed also thinks that tanh 360 is .999993025339611? float point issue maybe? many thanks when this is fixed.

Syndicate content