SMath Studio Forum
»
SMath Studio
»
Bugs & Problems
»
Accuracy problem with boolean operator
  Rank: Member Groups: Registered
Joined: 05/10/2016(UTC) Posts: 22   Was thanked: 2 time(s) in 2 post(s)
|
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 (8kb) downloaded 15 time(s).
|
|
|
|
 Rank: Guest
Groups: Registered
Joined: 04/07/2015(UTC) Posts: 6,722  Was thanked: 959 time(s) in 787 post(s)
|
Originally Posted by: janclaeys  How can I make these values equal ? If numerical arithmetic can't ... You can't. Visit the previous thread in the Forum.
|
|
|
|
 Rank: Guest
Groups: Registered
Joined: 04/07/2015(UTC) Posts: 6,722  Was thanked: 959 time(s) in 787 post(s)
|
... differently puzzling: set n 49, 50 
|
|
|
|
  Rank: Advanced Member Groups: Registered
Joined: 28/08/2014(UTC) Posts: 1,265  Was thanked: 728 time(s) in 460 post(s)
|
Originally Posted by: janclaeys  ... How can I make these values equal? Reduce the amount of significant numbers? ... Accuracy.sm (8kb) downloaded 15 time(s). Choose symbolic optimization in the matrix definition.  Best regards. Alvaro. Edited by user 13 May 2022 02:16:47(UTC)
| Reason: Change proposed solution.
|
 2 users thanked Razonar for this useful post.
|
on 13/05/2022(UTC), on 13/05/2022(UTC)
|
|
 Rank: Guest
Groups: Registered
Joined: 04/07/2015(UTC) Posts: 6,722  Was thanked: 959 time(s) in 787 post(s)
|
Originally Posted by: janclaeys  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 (15kb) downloaded 4 time(s).
|
|
|
|
  Rank: Member Groups: Registered
Joined: 05/10/2016(UTC) Posts: 22   Was thanked: 2 time(s) in 2 post(s)
|
Thanks everybody for the support!
|
|
|
|
SMath Studio Forum
»
SMath Studio
»
Bugs & Problems
»
Accuracy problem with boolean operator
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.