Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

14
  • $\begingroup$ for being clear y[x_]= : it is like one time function y[x_]:= it is like normal funtion ?? $\endgroup$ Commented Jul 29, 2012 at 13:17
  • 3
    $\begingroup$ +1 but please include the names Set and SetDelayed in your answer, for reference and easy searching. $\endgroup$ Commented Jul 29, 2012 at 13:19
  • $\begingroup$ Is there a difference then between y[x_]= and y[x_]:=y[x]= for caching values ? $\endgroup$ Commented Jul 29, 2012 at 13:53
  • 2
    $\begingroup$ @DSaad, no, take what acl said more literally. y[x_]=rhs means "evaluate the rhs to get the expression of the FUNCTION", while y[x_]:=rhs means that rhs is literally the expression of the function $\endgroup$ Commented Jul 29, 2012 at 14:37
  • $\begingroup$ @FaysalAberkane definately. y[x_]= doesn't cache any values at all $\endgroup$ Commented Jul 29, 2012 at 14:39