SPRESENSE
2e80d5e38e
libs/libc/math: Fix calculation error of log function
...
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);
2021-07-10 12:28:34 -07:00
..
2021-04-02 11:12:25 -05:00
2021-03-09 23:18:28 +08:00
2020-10-02 04:54:52 +02:00
2021-03-09 23:18:28 +08:00
2021-04-02 11:12:25 -05:00
2021-04-02 11:12:25 -05:00
2021-04-02 11:12:25 -05:00
2020-08-14 07:27:55 -05:00
2021-03-09 23:18:28 +08:00
2021-05-27 08:07:25 +09:00
2021-05-27 08:07:25 +09:00
2021-05-27 08:07:25 +09:00
2021-03-09 23:18:28 +08:00
2021-03-09 23:18:28 +08:00
2021-03-09 23:18:28 +08:00
2021-05-27 08:07:25 +09:00
2021-04-02 11:12:25 -05:00
2018-05-29 13:21:26 -06:00
2021-03-09 23:18:28 +08:00
2021-03-09 23:18:28 +08:00
2021-03-09 23:18:28 +08:00
2019-07-29 20:27:33 -06:00
2020-01-02 10:54:43 -06:00
2020-01-02 10:54:43 -06:00
2021-04-02 11:12:25 -05:00
2021-07-10 11:00:07 -03:00
2021-07-10 11:00:07 -03:00
2021-07-10 11:00:07 -03:00
2021-07-10 11:00:07 -03:00
2021-07-10 11:00:07 -03:00
2021-07-10 11:00:07 -03:00
2019-02-27 08:41:08 -06:00
2021-03-09 23:18:28 +08:00
2018-05-29 13:21:26 -06:00
2020-06-29 16:25:22 +01:00
2021-03-09 23:18:28 +08:00
2021-03-09 23:18:28 +08:00
2021-03-09 23:18:28 +08:00
2021-07-10 12:28:34 -07:00
2021-07-10 12:28:34 -07:00
2021-03-09 23:18:28 +08:00
2021-03-09 23:18:28 +08:00
2021-03-09 23:18:28 +08:00
2021-03-09 23:18:28 +08:00
2021-05-05 06:05:58 -07:00
2021-03-09 23:18:28 +08:00
2021-03-09 23:18:28 +08:00
2021-03-09 23:18:28 +08:00
2021-04-03 04:20:31 -07:00
2021-04-03 04:20:31 -07:00
2021-04-03 04:20:31 -07:00
2021-05-27 08:07:25 +09:00
2021-05-27 08:07:25 +09:00
2021-05-27 08:07:25 +09:00
2021-04-02 11:12:25 -05:00
2019-07-29 20:27:33 -06:00
2021-04-02 11:12:25 -05:00
2020-01-07 09:06:02 -06:00
2020-01-07 09:06:02 -06:00
2020-01-07 09:06:02 -06:00
2020-01-02 10:54:43 -06:00
2020-01-02 10:54:43 -06:00
2021-04-02 11:12:25 -05:00
2021-07-10 11:00:07 -03:00