Problems with Floor()

Problems with Floor() - Poruke

#1 Objavljeno: 23. 5. 2018. 12:35:43
Arie

Arie

94 svidjanja u 285 postova.

Grupa: User

Can anyone explain what is going on here?

Why is the Floor() function producing a 3 in the following example?

Untitled.png
logrange.sm (9,08 KiB) preuzeto 1352 put(ova).

Edit: The .sm shows it, but I am in 0.99.6671.
Feel free to join the SMath Studio Users Discord Channel: https://discord.gg/PayZpJW
#2 Objavljeno: 23. 5. 2018. 12:49:10
Arie

Arie

94 svidjanja u 285 postova.

Grupa: User

This appears to be more of an issue with the log() function perhaps?

Fajl nije pronađen.Fajl nije pronađen.
Feel free to join the SMath Studio Users Discord Channel: https://discord.gg/PayZpJW
#3 Objavljeno: 23. 5. 2018. 13:34:07
Jean Giraud

Jean Giraud

983 svidjanja u 6.866 postova.

Grupa: User

Wrote

Can anyone explain what is going on here?



like this: all maths functions are numerical approximations.
log(100000) does not come out exactly 4 [3 ± some epsilon]
just put log(10000.00000001) and get Floor [4]

floor(log(9999.999999999999))=4 [Mathcad]
floor(log(9999.999999999990))=3 [Mathcad]
floor(log(10000.00000001))=4 [Smath]
1 korisnika je svidelo ovu objavu
Arie 23. 5. 2018. 14:04:00
  • Novi postovi
  • Nema novih postova