Closed MAGNETO903 closed 3 years ago
@MAGNETO903, I suspect that the problem is related to confusion regarding the variable names. If you do,
nerdamer.setFunction("a", ["y"], "2*y");
nerdamer.setFunction("b", [], "x^2");
var ans = nerdamer("a(b(x))").text();
console.log(ans); // 2*x^2
it seems to give the expected result. Ironically I remember this not being the problem in past versions so I'm not sure when this broke. I'll take a look at this. Thanks.
Ok!)
@MAGNETO903, this issue should be fixed.
I have 2 simple functions:
f1(x)=2*x
f2(x)=x^2
I want to make a function
f3
that:f3(x) = f1(f2(x)) = f1(x^2) = 2x^2
I type in nerdamer: