Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
Untitled
a guest
Feb 25th, 2018
62
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
text
0.19 KB
| None
|
0
0
raw
download
clone
embed
print
report
def xSquared(x):
return x**2
def getDeriv(func, x):
h = 0.0001
return (func(x+h) - func(x)) / h
x = 3
derivative = getDeriv(xSquared, x)
actual = 2*x
derivative, actual = 6.0001, 6
Add Comment
Please,
Sign In
to add comment
Public Pastes
🤑 G2A.com Free Gift Card Guide Apr 2024 FIX 💰
GetText | 9 min ago | 0.38 KB
Untitled
Bash | 13 min ago | 0.06 KB
Untitled
JavaScript | 18 min ago | 0.79 KB
Untitled
Python | 37 min ago | 3.80 KB
config.yaml
YAML | 41 min ago | 11.75 KB
How is FXOpen Expanding Its Share CFD Offerin...
PHP | 44 min ago | 2.95 KB
Exim Test Email Script
Bash | 44 min ago | 0.75 KB
🤑 G2A.com Free Gift Card Guide Apr 2024 FIX 🤑
GetText | 58 min ago | 0.39 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!