-
Notifications
You must be signed in to change notification settings - Fork 163
Open
Labels
Description
This is outside of the refactoring being done on the matrix class (and should likely be done farther out in the development cycle (3.0.0 for example is when I'd expect it). I feel like this would require a lot of development for a very low amount of utility (given the power of other currently faster languages).
In case anyone would like to implement this prior to that and I would love some recommendations, here's an introduction on how Mathematica handles it:
f[x_] := 3 x
g[x_] := 7 x
h[x_] := f[x] g[x]
Plot[h[x], {x, -5, 5}]
m[x_] := {{g[x], f[x]}, {h[x], g[x]}}
d[x_] := m[x].m[x]
d[1] (*= {{112, 42}, {294, 112}}*)
If you'd like to implement this, I'd recommend posting on here to help get a better idea on how it may be useful.
It would be likely that we'd have to extend the javascript function object in order to make this work properly.