Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
Trapez
mihainan
May 20th, 2014
237
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
Octave
0.15 KB
| None
|
0
0
raw
download
clone
embed
print
report
function
I
=
Trapez
(
x
,
y
)
n
=
length
(
x
)
;
S
=
0
;
for
i
=
1
:
length
(
x
)
-
1
S
+=
(
x
(
i
+
1
)
-
x
(
i
)
)
*
(
y
(
i
+
1
)
+
y
(
i
)
)
endfor
I
=
S
/
2
;
endfunction
Advertisement
Add Comment
Please,
Sign In
to add comment
Public Pastes
Crypto Exploit
CSS | 36 min ago | 0.91 KB
+13,000$ in 2 days
CSS | 36 min ago | 0.91 KB
Untitled
47 min ago | 6.73 KB
OoT rando seed 1/22
54 min ago | 89.85 KB
Untitled
2 hours ago | 29.02 KB
Untitled
4 hours ago | 35.22 KB
Untitled
6 hours ago | 0.02 KB
Untitled
6 hours ago | 11.45 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!