|
Post by Carl Gundel on Aug 5, 2020 8:41:33 GMT -5
Found the power calculation evaluation seems to be wrong... I am still on Build 350, on a Raspberry Pi-4B. (Don't know if 351 has same problem) LB code: PRINT USING("###.#############", 6^1.5) (Identical to (6 * SQRT(6)). I-Phone calculator gives: 14.69693845669907, as does LB 4.5.1 I get the following result on LB4, LB5 build 351 on both Windows and on the Pi. 14.6969384566991 This is wrong?
|
|
|
Post by Rod on Aug 5, 2020 9:21:01 GMT -5
PRINT USING("###.#############", 6^1.5) PRINT USING("###.#############", 6.0^1.5)
On Win10 Build 351 32bit I find that ^ maths function gives two answers 6^1.5 is wrong, 6.0^1.5 is correct
14.6969384566991 is the correct answer
Output I see
|
|
|
Post by Carl Gundel on Aug 5, 2020 10:43:52 GMT -5
PRINT USING("###.#############", 6^1.5) PRINT USING("###.#############", 6.0^1.5) On Win10 Build 351 32bit I find that ^ maths function gives two answers 6^1.5 is wrong, 6.0^1.5 is correct 14.6969384566991 is the correct answer Output I see Thanks Rod. 6^1.5 is only computing in single precision. Shouldn't be hard to fix.
|
|
|
Post by Rod on Aug 5, 2020 10:50:57 GMT -5
Thank you edniemeyer, good spot.
|
|
|
Post by Carl Gundel on Aug 5, 2020 11:20:32 GMT -5
Thank you edniemeyer, good spot. Yes, many thanks!
|
|