From: <no...@so...> - 2002-10-07 20:59:28
|
Bugs item #619921, was opened at 2002-10-07 15:59 You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=104933&aid=619921&group_id=4933 Category: None Group: None Status: Open Resolution: None Priority: 5 Submitted By: Barton Willis (willisb) Assigned to: Nobody/Anonymous (nobody) Summary: ratsimp((-1)^ 0.3333333333335) Initial Comment: When ratepsilon is small (10^-13 or so), ratsimp( (-1)^0.3333333333335) evaluates to 0. Additionally, ratsimp((-1)^(666607404881/1999822214642)) evaluates to zero. (C1) (-1)^0.3333333333335; 0.3333333333335 (D1) (- 1) (C2) for i : 8 thru 17 do ( ratepsilon : 1.0d0 / 10^i, print(ratsimp(d1))); RAT replaced 0.3333333333335 by 1//3 = 0.33333333333333 - 1 RAT replaced 0.3333333333335 by 1//3 = 0.33333333333333 - 1 RAT replaced 0.3333333333335 by 1//3 = 0.33333333333333 - 1 RAT replaced 0.3333333333335 by 1//3 = 0.33333333333333 - 1 RAT replaced 0.3333333333335 by 1//3 = 0.33333333333333 - 1 RAT replaced 0.3333333333335 by 666607404881//1999822214642 = 0.33333331148606 0 RAT replaced 0.3333333333335 by 666607404881//1999822214642 = 0.33333331148606 0 RAT replaced 0.3333333333335 by 666607404881//1999822214642 = 0.33333331148606 0 RAT replaced 0.3333333333335 by 666607404881//1999822214642 = 0.33333331148606 0 RAT replaced 0.3333333333335 by = 0.33333331148606 0 (D2) DONE (C4) ratsimp((-1)^(666607404881/1999822214642)), ratepsilon : 1.0d-16; (D4) 0 In (C4), the value of ratepsilon really doesn't matter. Maxima 5.6 under Linux, and 5.5 under XP. Barton ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=104933&aid=619921&group_id=4933 |