- #1
Gwinterz
- 27
- 0
Hey,
Say I have a function f[a,b,c] which depends on another function g[b,c] such that:
f[a,b,c] = a*g[b,c]
If I input, f[a,1,2], mathematica spits out a*g[1,2] rather then actually evaluating what g[1,2] is. Is there a way I can force mathematica to evaluate g[1,2] so instead, e/g if g = b/c, mathematica will give:
f[a,1,2] = a/2
This is just a simple example, in what I am doing this lack of evaluating causes a significant increase to the computation time.
Thanks
Say I have a function f[a,b,c] which depends on another function g[b,c] such that:
f[a,b,c] = a*g[b,c]
If I input, f[a,1,2], mathematica spits out a*g[1,2] rather then actually evaluating what g[1,2] is. Is there a way I can force mathematica to evaluate g[1,2] so instead, e/g if g = b/c, mathematica will give:
f[a,1,2] = a/2
This is just a simple example, in what I am doing this lack of evaluating causes a significant increase to the computation time.
Thanks