Accuracy problem with boolean operator

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

#1 Objavljeno: 12. 5. 2022. 10:05:24
Jan Claeys

Jan Claeys

2 svidjanja u 25 postova.

Grupa: 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) preuzeto 1735 put(ova).
#2 Objavljeno: 12. 5. 2022. 15:55:14
Jean Giraud

Jean Giraud

983 svidjanja u 6.866 postova.

Grupa: 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 Objavljeno: 12. 5. 2022. 17:26:48
Jean Giraud

Jean Giraud

983 svidjanja u 6.866 postova.

Grupa: User

... differently puzzling: set n 49, 50

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

Alvaro

1.139 svidjanja u 1.805 postova.

Grupa: User

Wrote

...
How can I make these values equal? Reduce the amount of significant numbers?
...Accuracy.sm (7,11 KiB) preuzeto 1735 put(ova).



Choose symbolic optimization in the matrix definition.

Clipboard01.jpg

Best regards.
Alvaro.
2 korisnika je svidelo ovu objavu
janclaeys 12. 5. 2022. 21:04:00, Davide Carpi 13. 5. 2022. 05:29:00
#5 Objavljeno: 13. 5. 2022. 09:44:14
Jean Giraud

Jean Giraud

983 svidjanja u 6.866 postova.

Grupa: 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) preuzeto 1576 put(ova).

#6 Objavljeno: 13. 5. 2022. 09:53:18
Jan Claeys

Jan Claeys

2 svidjanja u 25 postova.

Grupa: User

Thanks everybody for the support!
  • Novi postovi
  • Nema novih postova