Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #13830
| Path | csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.glorb.com!newspump.sol.net!post2.nntp.sol.net!posts.news.twtelecom.net!nnrp3.twtelecom.net!not-for-mail |
|---|---|
| From | Frank K <fkampas@gmail.com> |
| Newsgroups | comp.soft-sys.math.mathematica |
| Subject | Re: Query regarding Function |
| Date | Wed, 13 Mar 2013 08:18:20 +0000 (UTC) |
| Sender | steve@smc.vnet.net |
| Approved | Steven M. Christensen <steve@smc.vnet.net>, Moderator |
| Message-ID | <khpcoc$mdp$1@smc.vnet.net> (permalink) |
| References | <khmb84$ngv$1@smc.vnet.net> |
| Lines | 43 |
| Organization | Time-Warner Telecom |
| NNTP-Posting-Date | 13 Mar 2013 08:18:38 GMT |
| NNTP-Posting-Host | 213b8f3d.news.twtelecom.net |
| X-Trace | DXC=bME`G[>>@k[]VA;Pm`8_TYC_A=>8kQj6]9BHNOcEA\@Y:fXHSa;JoD[EFiONJ7[GoVYS`2Wk\4mVZ |
| X-Complaints-To | abuse@twtelecom.net |
| Xref | csiph.com comp.soft-sys.math.mathematica:13830 |
Show key headers only | View raw
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.
Back to comp.soft-sys.math.mathematica | Previous | Next — Previous in thread | Find similar | Unroll thread
Query regarding Function Rahul Chakraborty <rahul.6sept@gmail.com> - 2013-03-12 04:34 +0000 Re: Query regarding Function Oliver Roese <Oliver.Roese@FernUni-Hagen.de> - 2013-03-13 08:17 +0000 Re: Query regarding Function David Bailey <dave@removedbailey.co.uk> - 2013-03-13 08:18 +0000 Re: Query regarding Function Peter Pein <petsie@dordos.net> - 2013-03-13 08:17 +0000 Re: Query regarding Function svkeeley@aol.com - 2013-03-13 08:18 +0000 Re: Query regarding Function Richard Fateman <fateman@cs.berkeley.edu> - 2013-03-13 08:18 +0000 Re: Query regarding Function "Dr. Wolfgang Hintze" <weh@snafu.de> - 2013-03-13 08:17 +0000 Re: Query regarding Function Frank K <fkampas@gmail.com> - 2013-03-13 08:18 +0000
csiph-web