From: SourceForge.net <no...@so...> - 2006-08-12 16:56:35
|
Bugs item #1247549, was opened at 2005-07-29 10:07 Message generated for change (Comment added) made by robert_dodier You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=104933&aid=1247549&group_id=4933 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Lisp Core Group: None Status: Open Resolution: None Priority: 5 Submitted By: Robert Dodier (robert_dodier) Assigned to: Nobody/Anonymous (nobody) Summary: noun/verb forms of erf and exp not treated consistently Initial Comment: MEVAL treats $ERF and %ERF, and $EXP and %EXP, differently when the argument is a floating point number. For some other functions including $SIN/%SIN, $COS/%COS, $TAN/%TAN, and $BESSEL_J/%BESSEL_J, the result is a floating point number in both cases. I haven't tried any other functions yet. I am guessing that the result should be a float in all cases where the argument is a float. Examples: (%i9) :lisp (meval '(($erf) 1.0)) (($ERF SIMP) 1.0) (%i9) :lisp (meval '(($sin) 1.0)) 0.8414709848078965 (%i9) :lisp (meval '(($cos) 1.0)) 0.5403023058681398 (%i9) :lisp (meval '(($exp) 1.0)) 2.718281828459045 (%i9) :lisp (meval '(($tan) 1.0)) 1.557407724654902 (%i9) :lisp (meval '(($bessel_j) 1 1.0)) 0.4400505857449335 (%i14) :lisp (meval '((%erf) 1.0)) 0.8427007929497148 NIL (%i14) :lisp (meval '((%sin) 1.0)) 0.8414709848078965 (%i14) :lisp (meval '((%cos) 1.0)) 0.5403023058681398 (%i14) :lisp (meval '((%exp) 1.0)) ((%EXP SIMP) 1.0) (%i14) :lisp (meval '((%tan) 1.0)) 1.557407724654902 (%i14) :lisp (meval '((%bessel_j) 1 1.0)) 0.4400505857449335 NIL ---------------------------------------------------------------------- >Comment By: Robert Dodier (robert_dodier) Date: 2006-08-12 10:56 Message: Logged In: YES user_id=501686 Observed in 5.9.3.99rc1 / GCL 2.6.7. ---------------------------------------------------------------------- Comment By: Stavros Macrakis (macrakis) Date: 2005-09-28 08:28 Message: Logged In: YES user_id=588346 Yes, this should be fixed. And the half-baked scheme where the verb form means evaluate as a float should be expunged. Currently, (verbify(sin))(1) => 0.84 for example. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=104933&aid=1247549&group_id=4933 |