Last active
December 22, 2018 23:44
-
-
Save gdejohn/0258c5fa85af60e40a7f to your computer and use it in GitHub Desktop.
Calculates the fixed point of the cosine function: x such that cos(x) == x
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
assert (exists x = loop(1.0)(cos).paired.find(([x, y]) => x == y)?.first); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment