The Math Forum

Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Math Forum » Discussions » Inactive » comp.soft-sys.math.mathematica

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: Query regarding Function
Replies: 7   Last Post: Mar 14, 2013 7:12 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Richard Fateman

Posts: 1,539
Registered: 12/7/04
Re: Query regarding Function
Posted: Mar 13, 2013 4:18 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

On 3/11/2013 9:34 PM, 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

try using x^2+2*x*y

xy is not the same as x*y

Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.