#969 hgfred([ ], [ ], 0)

closed
nobody
Lisp Core (471)
3
2010-01-04
2006-07-31
No

All the following should simplify to 1:

hgfred([3,4],[7],0) --> unsimplified mess that is also
wrong

hgfred([1,1],[2],0) --> division by zero

hgfred([1,1],[1],0) --> 1 (OK)

Barton

Discussion

  • Raymond Toy

    Raymond Toy - 2006-08-31

    Logged In: YES
    user_id=28849

    I don't think hgfred was ever intended for numerical
    evaluation. Should it? limit(hgfred(foo,x),x,0) seems to
    produce the correct result.

     
  • Dieter Kaiser

    Dieter Kaiser - 2010-01-04

    Fixed in revision 1.111 of hyp.lisp. The new results are:

    (%i2) hgfred([3,4],[7],0);
    (%o2) 1

    (%i3) hgfred([1,1],[2],0);
    (%o3) 1

    (%i4) hgfred([1,1],[1],0);
    (%o4) 1

    Closing this bug report as fixed.
    Dieter Kaiser

     
  • Dieter Kaiser

    Dieter Kaiser - 2010-01-04
    • status: open --> closed
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks