W3C home > Mailing lists > Public > public-css-archive@w3.org > July 2019

Re: [csswg-drafts] [css-values] Does tan(90deg) return +∞, −∞ or NaN? (#4101)

From: Oriol Brufau via GitHub <sysbot+gh@w3.org>
Date: Fri, 12 Jul 2019 22:23:44 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-511051759-1562970223-sysbot+gh@w3.org>
Um, I only mentioned 90deg and -90deg because I assumed we would preserve the 360deg periodicity.

Sure, saying `tan(90deg) != tan(-90deg)` already implies that we loose the 180deg periodicity, but the 360deg one is like very intrinsic to trigonometry. I'm not convinced that we should drop it just to match some floating-point precision problems.

This seems strange to me:
tan(-90deg) = -∞
tan(-90deg + 360deg) = +∞

GitHub Notification of comment by Loirooriol
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/4101#issuecomment-511051759 using your GitHub account
Received on Friday, 12 July 2019 22:23:46 UTC

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:41:50 UTC