Accuracy problem with boolean operator

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

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

Jan Claeys

2 likes in 25 posts.

Group: 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 KiB) downloaded 36 time(s).
#2 Posted: 5/12/2022 3:55:14 PM
Jean Giraud

Jean Giraud

983 likes in 6866 posts.

Group: 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 Posted: 5/12/2022 5:26:48 PM
Jean Giraud

Jean Giraud

983 likes in 6866 posts.

Group: User

... differently puzzling: set n 49, 50

Puzzling.PNG
#4 Posted: 5/12/2022 6:30:06 PM
Alvaro Diaz Falconi

Alvaro Diaz Falconi

992 likes in 1674 posts.

Group: User

Wrote

...
How can I make these values equal? Reduce the amount of significant numbers?
...Accuracy.sm (7 KiB) downloaded 36 time(s).



Choose symbolic optimization in the matrix definition.

Clipboard01.jpg

Best regards.
Alvaro.
2 users liked this post
janclaeys 5/12/2022 9:04:00 PM, Davide Carpi 5/13/2022 5:29:00 AM
#5 Posted: 5/13/2022 9:44:14 AM
Jean Giraud

Jean Giraud

983 likes in 6866 posts.

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

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

Jan Claeys

2 likes in 25 posts.

Group: User

Thanks everybody for the support!
  • New Posts New Posts
  • No New Posts No New Posts