posible bug - clashing variable names in integrals
Subject: posible bug - clashing variable names in integrals
From: Richard Fateman
Date: Sun, 04 Oct 2009 11:33:58 -0700
Stavros Macrakis wrote:
>
>
> On Sun, Oct 4, 2009 at 12:36 PM, Barton Willis <willisb at unk.edu
> <mailto:willisb at unk.edu>> wrote:
>
> ...I used "->" as shorthand for a lambda form:
>
>
>
>
> (%i4) fsum(k -> 1/k,1,n);
> (%o4) psi[0](n+1)+%gamma
>
>
> I like the idea of a concise syntax for lambda-expressions, but how to
> generalize to more than one argument? Perhaps [x,y]->x/y or (x,y)->x/y
> or something?
>
> -s
>
Mathematica does this:
#+45& is like lambda([x1],x1+45)
#1+45& is the same
#1+45*#2& is like lambda([x1,x2],x1+45*x2).
just FYI