Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
newton rhapson
Ariana1729
Jun 17th, 2019
166
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
Python
0.21 KB
| None
|
0
0
raw
download
clone
embed
print
report
def
f
(
x
)
:
return
x**x-
10
.
def
NR
(
x
)
:
e
=
10
**-
10
#make this smaller to be more accurate
return
x-e*f
(
x
)
/
(
f
(
x+e
)
-f
(
x
)
)
s
=
2
for
i
in
range
(
10
)
:
print
str
(
i
)
+
"th interation, x="
+
str
(
s
)
s
=
NR
(
s
)
Add Comment
Please,
Sign In
to add comment
Public Pastes
🤑 G2A.com Free Gift Card Guide May 2024 FIX 🤑
GetText | 5 min ago | 0.39 KB
NFC-Reader
Python | 8 min ago | 6.02 KB
mmn_test_func
C++ | 14 min ago | 5.83 KB
doubletitle
Java | 39 min ago | 10.34 KB
ghjfkgkfgjkhlfjghknb
Python | 1 hour ago | 1.08 KB
🤑 G2A.com Free Gift Card Guide May 2024 FIX 🎁
GetText | 1 hour ago | 0.38 KB
apactat
Lua | 1 hour ago | 3.58 KB
плохая дейкстра
C++ | 1 hour ago | 5.80 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!