Note that f is a global. It evaluates correctly, but not if passed to findPt.
You are right: when I started with a clean kernel, I got what you got.But I found that the following works. Note that g, x, and y are all locals, but passing g works.
Hi David,
I am unable to reproduce the result. makePlane, findPt[f]and f[1,2] all evaluate to
makePlane
findPt[f]
f[1,2]
1.5 + 2. x - 1. y
Try with a fresh kernel.