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

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

From: Oriol Brufau via GitHub <sysbot+gh@w3.org>
Date: Thu, 11 Jul 2019 16:39:55 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-510562558-1562863194-sysbot+gh@w3.org>
I think it's also good to preserve `tan(x) = sin(x) / cos(x)`.

So assuming `cos(90deg) = cos(-90deg) = +0` (not `-0`), then IEEE-754 says

```
tan(+90deg) = +1 / +0 = +∞
tan(−90deg) = −1 / +0 = −∞
```

-- 
GitHub Notification of comment by Loirooriol
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/4101#issuecomment-510562558 using your GitHub account
Received on Thursday, 11 July 2019 16:39:57 UTC

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