You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by GitBox <gi...@apache.org> on 2021/07/10 12:18:18 UTC

[GitHub] [incubator-nuttx] SPRESENSE opened a new pull request #4115: libc/math: Fix calculation error of log function

SPRESENSE opened a new pull request #4115:
URL: https://github.com/apache/incubator-nuttx/pull/4115


   ## Summary
   Fix a problem where the log function would loop infinitely by
   calculation error when a specific value was passed. For example,
   in the following case, the log function loops infinitely and
   never returns. So, this commit fixes to return the right value.
   
     double a = 7883961.5;
     double b = log(a);
   
   ## Impact
   None
   
   ## Testing
   In the above case, log function returns the right value.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [incubator-nuttx] nealef commented on pull request #4115: libc/math: Fix calculation error of log function

Posted by GitBox <gi...@apache.org>.
nealef commented on pull request #4115:
URL: https://github.com/apache/incubator-nuttx/pull/4115#issuecomment-887909341


   Using this code the operation `log(318.0)` still loops infinitely.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [incubator-nuttx] xiaoxiang781216 merged pull request #4115: libc/math: Fix calculation error of log function

Posted by GitBox <gi...@apache.org>.
xiaoxiang781216 merged pull request #4115:
URL: https://github.com/apache/incubator-nuttx/pull/4115


   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org