Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
Untitled
a guest
Oct 20th, 2017
78
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
text
0.15 KB
| None
|
0
0
raw
download
clone
embed
print
report
function erg2=trapez(a,b,n,f)
h=(b-a)/n;
tmp=0;
for j=1:n
mop=a+(j-1)*h;
tmp=tmp+f(mop);
end
erg2=(h/2)*(f(a)+2*tmp+f(b));
end
Add Comment
Please,
Sign In
to add comment
Public Pastes
Notification Library
Lua | 39 min ago | 3.97 KB
🤑 G2A.com Free Gift Card Guide Apr 2024 FIX 🤑
GetText | 53 min ago | 0.39 KB
htacces
IO | 56 min ago | 0.49 KB
Murder Mystery Voting System
Lua | 1 hour ago | 1.45 KB
Flying Script
Lua | 1 hour ago | 0.44 KB
pastebin.ai - #1 pastebin alternative
PHP | 2 hours ago | 0.81 KB
computercraft test script
Lua | 2 hours ago | 3.10 KB
rps
JSON | 3 hours ago | 4.14 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!