MathGroup Archive 2013

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Query regarding Function

  • To: mathgroup at smc.vnet.net
  • Subject: [mg130133] Re: Query regarding Function
  • From: Frank K <fkampas at gmail.com>
  • Date: Wed, 13 Mar 2013 04:19:48 -0400 (EDT)
  • Delivered-to: l-mathgroup@mail-archive0.wolfram.com
  • Delivered-to: l-mathgroup@wolfram.com
  • Delivered-to: mathgroup-newout@smc.vnet.net
  • Delivered-to: mathgroup-newsend@smc.vnet.net
  • References: <khmb84$ngv$1@smc.vnet.net>

On Tuesday, March 12, 2013 12:34:12 AM UTC-4, Rahul Chakraborty wrote:
> Dear all,
> 
> 
> 
> Case1:  In the following code
> 
> 
> 
>   Clear[f,x,y]
> 
> g=Function[{x,y},x^2+2xy][b,a]
> 
> 
> 
>  The output is found to be  b^2+2 xy
> 
> 
> 
> Case2:  But for the code
> 
> 
> 
>  Clear[f,x,y]
> 
> g=Function[{x,y},x^2+2y][b,a]
> 
> 
> 
>  The output is 2 a+b^2
> 
> 
> 
>  Hence my query is why in case 1 x*y is not replaced by b and a whereas in case 2 it got replaced ?
> 
> 
> 
> Regards,
> 
>  rc

You need a space between the x and the y.  What you have looks like a symbol xy, not x*y.



  • Prev by Date: Re: Query regarding Function
  • Next by Date: NDSolve PDE problem
  • Previous by thread: Re: Query regarding Function
  • Next by thread: Re: Query regarding Function