From: SourceForge.net <no...@so...> - 2003-02-13 18:41:53
|
Bugs item #686116, was opened at 2003-02-13 12:49 You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=104933&aid=686116&group_id=4933 Category: None Group: None Status: Open Resolution: None Priority: 5 Submitted By: Barton Willis (willisb) Assigned to: Nobody/Anonymous (nobody) Summary: binomial Initial Comment: The binomial function (defined in mlisp.lisp) sets $float and $numer to true. This can cause $binomial to return a decimal approximation when a rational is expected; consider ------ file bug.lisp-------------------------------- (defun $unk (a b) ($binomial a b)) -------------------------------------------------------- (C1) load("l:/maxima-bugs/bug.lisp")$ (C2) unk(21/5,4); (D2) 1.4784 (C3) display2d : false$ (C4) binomial(21/5,4); (D4) 924/625 Calling binomial from a Maxima function doesn't use the binomial function defined in mlisp; for example, (C5) foo(a,b) := block([], binomial(a,b))$ (C6) foo(21/5,4); (D6) 924/625 I seen no reason for $binomial in mlisp to set $float or $numer to true; I suggest that we try removing these assigments. Barton ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=104933&aid=686116&group_id=4933 |