• 1 Post
  • 4 Comments
Joined 1 year ago
cake
Cake day: June 27th, 2023

help-circle
  • xhduqetztoFirefoxFirefox 127.0 Release Notes
    link
    fedilink
    arrow-up
    11
    ·
    18 days ago

    navigator.clipboard.read()/write() has been enabled (see documentation). A paste context menu will appear for the user to confirm when attempting to read clipboard content that is not originated from a same-origin page.

    Very nice. The old execCommand API was annoying.




  • At the same time, it is also worth noting that the closed form formula is working with irrational numbers which can only be represented approximately in computers, and thus in some rare cases the method may produce incorrect result due to approximation errors.

    I’m nitpicking, but golden ratio can actually be represented exactly in computers. This is because the golden ratio is not merely an irrational number, but also an algebraic number. By definition, any real algebraic number can be represented as an integer vector, which contains a polynomial and two rationals that identify a root of the polynomial. Alas, the multiplication of algebraic numbers is quite involved and certainly far slower than the linear algebra approach for Fibonacci numbers.