Problems with Floor()

Problems with Floor() - Messages

#1 Posted: 5/23/2018 12:35:43 PM
Arie

Arie

93 likes in 285 posts.

Group: 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 KiB) downloaded 36 time(s).

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 Posted: 5/23/2018 12:49:10 PM
Arie

Arie

93 likes in 285 posts.

Group: User

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

File not found.File not found.
Feel free to join the SMath Studio Users Discord Channel: https://discord.gg/PayZpJW
#3 Posted: 5/23/2018 1:34:07 PM
Jean Giraud

Jean Giraud

983 likes in 6866 posts.

Group: 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 users liked this post
Arie 5/23/2018 2:04:00 PM
  • New Posts New Posts
  • No New Posts No New Posts