Floating-point bug Pico 2W with sin and acos #3002
Unanswered
vgroenhuis
asked this question in
Q&A
Replies: 2 comments 1 reply
-
This was a known bug in the SDK floating point acceleration that was fixed in the Upgrade to 4.6.0 to get the new version. When I run with the release I get the expected ~0 result on a Pico2:
|
Beta Was this translation helpful? Give feedback.
1 reply
-
Thanks a lot Earle and Max for your explanations! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Following code on Pico 2W (programmed with Arduino IDE) prints totally wrong output for sin(). Expected value is sin(pi) = 0 (or a very small value). Funny thing is that if you comment out the acos(few) statement, the output is OK again. Let's dig deeper into this, any help welcome!
Beta Was this translation helpful? Give feedback.
All reactions