Skip to main content
edited tags
Link
Tweeted twitter.com/#!/StackMma/status/229896154161246211
added 42 characters in body; edited tags; edited title
Source Link
rm -rf
  • 89.3k
  • 21
  • 297
  • 480

Difference What is the difference between y[x_]:=Set and y[x_]=SetDelayed?

I have a problem with defining a function and most of time I get confused by these twoSet or = and SetDelayed or :=. I read the help section but I didn't find out what is the difference is between defining a function as :

y[x_] :=

y[x_] := ... and y[x_] = ...

y[x_] =

Difference between y[x_]:= and y[x_]=

I have a problem with defining a function and most of time I get confused by these two. I read the help section but I didn't find out what is the difference between :

y[x_] :=

and

y[x_] =

What is the difference between Set and SetDelayed?

I have a problem with defining a function and most of time I get confused by Set or = and SetDelayed or :=. I read the help section but I didn't find out what the difference is between defining a function as y[x_] := ... and y[x_] = ...

added 2 characters in body; added 1 characters in body; edited tags; edited body
Source Link
Mr.Wizard
  • 273.1k
  • 34
  • 595
  • 1.4k

I have a problem with defining a function and most of time I get confused by these two. I read the help section but I didn't foundfind out what is the Differencedifference between :

y[x_] :=

and y[x_] =

y[x_] =

I have problem with defining a function and most of time I get confused by these two. I read the help section but I didn't found out what is the Difference between :

y[x_] :=

and y[x_] =

I have a problem with defining a function and most of time I get confused by these two. I read the help section but I didn't find out what is the difference between :

y[x_] :=

and

y[x_] =
Source Link
DSaad
  • 1.2k
  • 2
  • 14
  • 19
Loading