Handbook
Glossary
generate-simpson-weights ( seq -- seq )
Vocabulary
math
.
numerical-integration
Inputs
seq
an
object
Outputs
seq
an
object
Definition
USING:
math
sequences
;
IN:
math.numerical-integration
:
generate-simpson-weights
( seq -- seq )
length
1
+
2/
2
-
{
2 4
}
<repetition>
concat
{
1 4
}
{
1
}
surround
;