Menu

#3504 functions num or ev have a bug

None
closed
nobody
None
5
2018-11-26
2018-11-26
No

Maxima version: 5.42.0
Maxima build date: 2018-09-29 14:05:34

1 Attachments

Discussion

  • Gunter Königsmann

    My guess is that you see the difference between the internal and the external form of the equation. See inflag etc.

     
  • Jaime E. Villate

    No, there is no bug. The problem is that you think that the expression:

    num(f),a=b
    

    will first get the numerator of f and then substitute a for b, but it doesn't. It will first substitute a for b in f, and then get the numerator of the result.
    Consider the example when f is the expression x/y^m. If you first replace m by n-1, Maxima will simplify it as

    x*y^(1-n)
    

    and its numerator is that same expression. But if you first get the numerator of f, you get just x, and if you then replace m by n-1, you still get x, which is not the same result you get in the first case.

     
  • Jaime E. Villate

    • status: open --> closed
     

Log in to post a comment.