Created
April 28, 2019 08:47
-
-
Save satoryu/2e1fc20a64ae110f0cc1f67f22a802da to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| (1...).each { |x| puts (1 - 1.0/x)**x } |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Usage
ruby -e '(1...).each { |x| puts (1 - 1.0/x)**x }'