Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#1279 integration variable is global, should be local

closed
nobody
5
2007-10-17
2007-10-13
Anonymous
No

jjby@sbcglobal.net
--Maxima version: 5.13.0Maxima build date: 20:4 9/10/2007host type: i686-pc-mingw32lisp-implementation-type: GNU Common Lisp (GCL)lisp-implementation-version: GCL

t:0;
integrate(t,t);
Attempt to integrate wrt a number: 0
-- an error. To debug this try debugmode(true);

Discussion

  • Raymond Toy
    Raymond Toy
    2007-10-17

    Logged In: YES
    user_id=28849
    Originator: NO

    I'm not really familiar with all of maxima's evaluation rules, but this makes sense to me.

    Perhaps you really want to use integrate(t,'t)?

     
    • status: open --> closed
     
  • Logged In: YES
    user_id=588346
    Originator: NO

    This is not a bug. The arguments to integrate, as to most functions, are evaluated.

    Thus:

    var: x$
    expr: x^2$
    integrate(expr,var) => x^3/3

    You can quote them if you don't want them evaluated, e.g.

    integrate('expr,'var) => expr*var

    rtoy: I think he wants integrate('t,'t), actually...