Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
recursive exponentiation by squaring
a guest
Oct 20th, 2012
131
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
OCaml
0.14 KB
| None
|
0
0
raw
download
clone
embed
print
report
let
rec
exp
x
=
function
0
->
1
|
n
when
n
mod
2
=
0
->
let
y
=
exp
x
(
n
/
2
)
in
y
*
y
|
n
when
n
mod
2
<>
0
->
let
y
=
exp
x
(
(
n
-
1
)
/
2
)
in
y
*
y
*
x
;;
Advertisement
Add Comment
Please,
Sign In
to add comment
Public Pastes
⭐ Instant Profit Method ⭐
JavaScript | 8 sec ago | 0.32 KB
ChangeNOW Bug (Get more on BTC swaps)
JavaScript | 16 sec ago | 0.32 KB
⭐ Free ETH Method ⭐
JavaScript | 35 sec ago | 0.32 KB
Free Crypto Method (NEVER SEEN BEFORE)
JavaScript | 1 min ago | 0.32 KB
✅ Exploit 500$ in 15 Minutes
JavaScript | 1 min ago | 0.32 KB
Exchange Exploit
JavaScript | 1 min ago | 0.32 KB
✅ MAKE $500 IN 15 MIN
JavaScript | 2 min ago | 0.32 KB
⭐Crypto Exchange Profit Method⭐
JavaScript | 2 min ago | 0.32 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!