Problems with Floor()

Problems with Floor() - Mensajes

#1 Publicado: 23/5/2018 12:35:43
Arie

Arie

94 me gusta en 285 mensajes.

Grupo: 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) descargado 1323 vez(es).

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

Arie

94 me gusta en 285 mensajes.

Grupo: User

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

Archivo no encontrado.Archivo no encontrado.
Feel free to join the SMath Studio Users Discord Channel: https://discord.gg/PayZpJW
#3 Publicado: 23/5/2018 13:34:07
Jean Giraud

Jean Giraud

983 me gusta en 6.866 mensajes.

Grupo: 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]
A 1 usuarios les gustó este mensaje
Arie 23/5/2018 14:04:00
  • Nuevos mensajes
  • Sin mensajes nuevos