[Maxima] posible bug - clashing variable names in integrals

Barton Willis willisb at unk.edu
Sun Oct 4 11:36:18 CDT 2009


-----maxima-bounces at math.utexas.edu wrote: -----


>You might want to reformulate integration, e.g.  make dint(f,a,b) the
>standard, where
>f looks like lambda([x],x^2+sin(x) ....)
>
>that is, an explicit function.

I like this idea--sometime ago, I experimented with such a function that
does this
for sums. I used "->" as shorthand for a lambda form:

 (%i3) load("C:mysum2.lisp");

 (%i4) fsum(k -> 1/k,1,n);
 (%o4) psi[0](n+1)+%gamma

 (%i5) fsum(k ->binomial(n,k) * binomial(2*n,k)/k!,1,n);
 (%o5) 2*hypergeometric([1,1-2*n,1-n],[2,2,2],1)*n^2

 (%i6) subst(n=10,%);
 (%o6) 17467098049/151200


Barton




More information about the Maxima mailing list