-
-
Notifications
You must be signed in to change notification settings - Fork 25
Open
Labels
bugSomething isn't workingSomething isn't working
Description
For example:
((D (fn [x] (first (symbolic-taylor-series exp x)))) 10)
;;=> 0
What's happening:
x
is getting substituted for a symbol, sayx0
- this is replacing the
Dual
, not doing the substitition inside of the primal - so
(exp x0)
pops out, and the literal implementation doesn't recurse into its lists, because in NORMAL generic arithmetic without the subs,(exp <dual>)
would return typedual
, not typeliteral
So we can fix typical-object
here or do something in the function body...
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working