Welcome Guest! To enable all features please Login. New Registrations are disabled.

Error

 Previous Topic Next Topic
 janclaeys #1 Posted : 12 May 2022 16:05:24(UTC) Rank: MemberGroups: Registered Joined: 05/10/2016(UTC)Posts: 22Was 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).
 Wanna join the discussion?! Login to your SMath Studio Forum forum account. New Registrations are disabled.
 Jean Giraud #2 Posted : 12 May 2022 21:55:14(UTC) Rank: GuestGroups: Registered Joined: 04/07/2015(UTC)Posts: 6,866Was thanked: 981 time(s) in 809 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.
 Jean Giraud #3 Posted : 12 May 2022 23:26:48(UTC) Rank: GuestGroups: Registered Joined: 04/07/2015(UTC)Posts: 6,866Was thanked: 981 time(s) in 809 post(s) ... differently puzzling: set n 49, 50
 Razonar #4 Posted : 13 May 2022 00:30:06(UTC) Rank: Advanced MemberGroups: Registered Joined: 28/08/2014(UTC)Posts: 1,387Was thanked: 842 time(s) in 533 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)
 Jean Giraud #5 Posted : 13 May 2022 15:44:14(UTC) Rank: GuestGroups: Registered Joined: 04/07/2015(UTC)Posts: 6,866Was thanked: 981 time(s) in 809 post(s) Originally Posted by: janclaeys How can I make these values equal ?Leave the main matrix numeric, explore Numeric/Symbolic in-situThe two Boleans disagree ... IMHO, Numeric is the practical procedure.Cheers ... Jean. Accuracy.sm (15kb) downloaded 4 time(s).
 janclaeys #6 Posted : 13 May 2022 15:53:18(UTC) Rank: MemberGroups: Registered Joined: 05/10/2016(UTC)Posts: 22Was thanked: 2 time(s) in 2 post(s) Thanks everybody for the support!
 Users browsing this topic
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.