- From: Oriol Brufau via GitHub <sysbot+gh@w3.org>
- Date: Thu, 23 Nov 2023 21:33:04 +0000
- To: public-css-archive@w3.org
It's not about clamping. The sine is a periodic function, e.g. for any integer `n`, `sin(πn) = 0`. The arcsine is the inverse function, so `asin(0)` must be one of these `πn`. We have to pick one, that's why CSS chooses the interval `[-90deg, 90deg]`, where we have a single solution. That is, `sin: [-π/2, π/2] → [-1, 1] ` is bijective. The image of the sine is the interval `[-1, 1]`, so `asin(2)` doesn't make sense, there is no number `x` such that `sin(x) = 2`. That's why CSS says to return NaN. -- GitHub Notification of comment by Loirooriol Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/9625#issuecomment-1824927945 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Thursday, 23 November 2023 21:33:05 UTC