Handbook
Glossary
chain-rule ( word -- e )
Vocabulary
math
.
dual
.
private
Inputs
word
an
object
Outputs
e
an
object
Definition
USING:
combinators.smart
generalizations
kernel
math
words
;
IN:
math.dual.private
MACRO:
chain-rule
( word -- e )
[
input-length
[
duals>nweave
]
curry
]
[
"derivative"
word-prop
]
[
input-length
1
+
[
nspread
]
curry
]
tri
curry
compose
[
sum-outputs
]
curry
;