[Date Index] [Thread Index] [Author Index]
Re: Why is y a local variable here?
On Tuesday, December 13, 2005 at 03:41 GMT -0500, Steven T. Hatton wrote: <snip> > I do not understand why y is not "contaminated" by the global value when it > appears in sd[y_] = SDP[n - 1, y];. Can someone explain this? Don't you need to use SetDelayed instead of Set? In other words, doesn't the syntax for a function definition need to be something like: sd[y_]:=SDP[x-1, y]; or sd=Function[y, SDP[x-1,y]; ?