Mathematica 9 is now available
Student Support Forum
-----
Student Support Forum: 'Is it Mathematica's bug?' topicStudent Support Forum > General > Archives > "Is it Mathematica's bug?"

Next Comment >Help
Author Comment/Response
TeopeTuK
03/02/05 03:58am

(*fu[1] is ok, but f[g] returns incorrect value
*)


In[425]:= fu[x_]:=Block[{s},
s = 10;
If[x<3, s x, 0]
];
fu[1]
fu[g]
__________________________________________________
Out[427]= 10
Out[428]= If[g<3, s g, 0]


Attachment: gluk.JPG, URL: ,

Thread 'Is it Mathematica's bug?' is now CLOSED
Author Date Posted
Is it Mathematica's bug? TeopeTuK 03/02/05 03:58am
Re: Is it Mathematica's bug? Furkan 03/05/05 05:09am
Re: Is it Mathematica's bug? TeopeTuK 03/09/05 07:21am
Next Comment >Help