|
[Date Index]
[Thread Index]
[Author Index]
Re: Fuction definition
- To: mathgroup at smc.vnet.net
- Subject: [mg73683] Re: [mg73635] Fuction definition
- From: János <janos.lobb at yale.edu>
- Date: Sat, 24 Feb 2007 02:24:41 -0500 (EST)
- References: <200702230942.EAA17911@smc.vnet.net>
On Feb 23, 2007, at 4:42 AM, bar at ANTYSPAM.ap.krakow.pl wrote:
> Hi
>
> When I try :
> ------------------
> p = 1;
> f1[x_] := p Sin[Pi x];
> p = 2;
> f2[x_] := p Sin[Pi x];
>
> f1[0.5]
> f2[0.5]
>
> Out[26]=2.
>
> Out[27]=2.
> -----------------
> When I use = instead of := it works OK.
> Why ?
>
> It is safely to use "=" in function definition ?
>
> I have to integrate and differentiate such function in the future.
> In my case function depends on about 20 parameters, which are
> calculated
> three times, (I want to obtain three functions)
>
> I'm not sure is this good idea to use '=' ?
>
> Regards , Olaf
>
>
As a newbie I guess that:
:= says to the function: "My dear, do not worry, I will kiss you =
after we walk out when the dance is called"
= says to the function: "My dear, do not worry, I kiss you right
now, and we walk out when the dance is called"
J=E1nos
------------------------------------------
"The shortest route between two points is the middleman" Ayn Rand
Prev by Date:
Re: Fuction definition
Next by Date:
Re: split again
Previous by thread:
Fuction definition
Next by thread:
Re: Fuction definition
|