Accuracy problem with boolean operator

Accuracy problem with boolean operator - Boolean operation fails due to accuracy - Mensajes

#1 Publicado: 12/5/2022 10:05:24
Jan Claeys

Jan Claeys

2 me gusta en 25 mensajes.

Grupo: User

Dear all,

In a cam profile generation program, I perform some boolean operations with angular values (input in degrees).
I noticed some boolean operations fail due to a varying accuracy.
The file in attachment will clarify what I mean.

How can I make these values equal? Reduce the amount of significant numbers?

Thanks in advance for any feedback!

Kind regards,

Jan

Accuracy.sm (7,11 KiB) descargado 1694 vez(es).
#2 Publicado: 12/5/2022 15:55:14
Jean Giraud

Jean Giraud

983 me gusta en 6.866 mensajes.

Grupo: User

Wrote

How can I make these values equal ?


If numerical arithmetic can't ... You can't.
Visit the previous thread in the Forum.

NumAcc.PNG



#3 Publicado: 12/5/2022 17:26:48
Jean Giraud

Jean Giraud

983 me gusta en 6.866 mensajes.

Grupo: User

... differently puzzling: set n 49, 50

Puzzling.PNG
#4 Publicado: 12/5/2022 18:30:06
Alvaro

Alvaro

1.139 me gusta en 1.805 mensajes.

Grupo: User

Wrote

...
How can I make these values equal? Reduce the amount of significant numbers?
...Accuracy.sm (7,11 KiB) descargado 1694 vez(es).



Choose symbolic optimization in the matrix definition.

Clipboard01.jpg

Best regards.
Alvaro.
A 2 usuarios les gustó este mensaje
janclaeys 12/5/2022 21:04:00, Davide Carpi 13/5/2022 5:29:00
#5 Publicado: 13/5/2022 9:44:14
Jean Giraud

Jean Giraud

983 me gusta en 6.866 mensajes.

Grupo: User

Wrote

How can I make these values equal ?


Leave the main matrix numeric, explore Numeric/Symbolic in-situ
The two Boleans disagree ... IMHO, Numeric is the practical procedure.
Cheers ... Jean.

Accuracy.sm (14,45 KiB) descargado 1542 vez(es).

#6 Publicado: 13/5/2022 9:53:18
Jan Claeys

Jan Claeys

2 me gusta en 25 mensajes.

Grupo: User

Thanks everybody for the support!
  • Nuevos mensajes
  • Sin mensajes nuevos