Accuracy problem with boolean operator

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

#1 Pubblicato: 12/05/2022 10:05:24
Jan Claeys

Jan Claeys

2 apprezzamenti in 25 post.

Gruppo: 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) scaricato 1697 volta(e).
#2 Pubblicato: 12/05/2022 15:55:14
Jean Giraud

Jean Giraud

983 apprezzamenti in 6.866 post.

Gruppo: 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 Pubblicato: 12/05/2022 17:26:48
Jean Giraud

Jean Giraud

983 apprezzamenti in 6.866 post.

Gruppo: User

... differently puzzling: set n 49, 50

Puzzling.PNG
#4 Pubblicato: 12/05/2022 18:30:06
Alvaro

Alvaro

1.139 apprezzamenti in 1.805 post.

Gruppo: User

Wrote

...
How can I make these values equal? Reduce the amount of significant numbers?
...Accuracy.sm (7,11 KiB) scaricato 1697 volta(e).



Choose symbolic optimization in the matrix definition.

Clipboard01.jpg

Best regards.
Alvaro.
2 utenti hanno apprezzato questo post
janclaeys 12/05/2022 21:04:00, Davide Carpi 13/05/2022 05:29:00
#5 Pubblicato: 13/05/2022 09:44:14
Jean Giraud

Jean Giraud

983 apprezzamenti in 6.866 post.

Gruppo: 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) scaricato 1545 volta(e).

#6 Pubblicato: 13/05/2022 09:53:18
Jan Claeys

Jan Claeys

2 apprezzamenti in 25 post.

Gruppo: User

Thanks everybody for the support!
  • Nuovi post
  • Nessun nuovo post