Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
Untitled
a guest
Apr 20th, 2018
89
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
text
0.16 KB
| None
|
0
0
raw
download
clone
embed
print
report
# number of iterations
iter = 20
iter +=1
mem = 0
res = (2..(iter+1)).inject { |r,i|
mem = (2+mem)**0.5
r * mem
}
printf "%.50f\n", (2**(iter+1))/res
Add Comment
Please,
Sign In
to add comment
Public Pastes
Untitled
HTML | 11 min ago | 0.24 KB
Madnesstybe
LScript | 36 min ago | 64.08 KB
🤑 G2A.com Free Gift Card Guide May 2024 FIX 💰
GetText | 37 min ago | 0.37 KB
🤑 G2A.com Free Gift Card Guide May 2024 FIX 🤑
GetText | 43 min ago | 0.39 KB
test_script
Bash | 2 hours ago | 0.04 KB
German Localization
JSON | 2 hours ago | 190.45 KB
Untitled
C# | 2 hours ago | 0.76 KB
Principale
C++ | 3 hours ago | 0.71 KB
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the
Cookies Policy
.
OK, I Understand
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!