zephyr/tests/lib
Lawrence King 7dae27a90d libc: minimal: math sqrt: sqrtf: fix numeric accuracy of sqrt and sqrtf.
Changed initial guess from a simple x/3 to dividing the exponent by 2.
This makes large or small numbers like 10e10 and 01e-10 converge in a few
loops.

Added a loop counter to ensure that the algorithm breaks out of the loop in
the case that the algorithm doesn't converge (toggling between two
numbers).

Added test cases for sqrt and sqrtf in libc. Tested with a range of numbers
between 10e10 and 10e-10. Verify good accuracy in test case.

Closes: #55962

Signed-off-by: Lawrence King <lawrencek52@gmail.com>
2023-07-14 12:42:41 -04:00
..
c_lib libc: minimal: math sqrt: sqrtf: fix numeric accuracy of sqrt and sqrtf. 2023-07-14 12:42:41 -04:00
cbprintf_fp tests: Use posix arch exclude where appropriate 2023-05-04 16:48:01 -04:00
cbprintf_package tests: cleanup metadata and filtering 2023-06-13 09:38:27 -04:00
cmsis_dsp samples, tests: convert string-based twister lists to YAML lists 2023-05-10 09:52:37 +02:00
cmsis_nn
cpp rtio: Use mpsc for submission and completion queue 2023-05-10 00:39:43 +09:00
devicetree devicetree.h: DT_FOREACH_NODE_VARGS, DT_FOREACH_STATUS_OKAY_NODE_VARGS 2023-07-07 11:41:19 +02:00
fdtable
gui/lvgl tests: lib: gui: lvgl: Reorder screen load and delete 2023-07-10 15:14:49 +02:00
hash_function tests: lib: hash_function: fix double-promotion warnings 2023-04-26 15:11:36 -07:00
hash_map tests,samples: Fix picolibc malloc arena settings 2023-05-09 01:29:16 +09:00
heap tests: samples: cleanup test tags, add integration_platforms 2023-06-02 04:47:06 -04:00
heap_align tests: samples: cleanup test tags, add integration_platforms 2023-06-02 04:47:06 -04:00
json tests: lib: json: Add test for array of objects 2023-06-29 21:03:48 +02:00
linear_range sys: linear_range: fix return value when window is outside range 2023-02-20 10:43:26 +01:00
mem_alloc tests: samples: cleanup test tags, add integration_platforms 2023-06-02 04:47:06 -04:00
mem_blocks tests: use integration_platforms where applicable 2023-05-26 17:52:02 -04:00
mem_blocks_stats tests: use integration_platforms where applicable 2023-05-26 17:52:02 -04:00
mpsc_pbuf samples, tests: convert string-based twister lists to YAML lists 2023-05-10 09:52:37 +02:00
newlib tests: samples: cleanup test tags, add integration_platforms 2023-06-02 04:47:06 -04:00
notify
onoff samples, tests: convert string-based twister lists to YAML lists 2023-05-10 09:52:37 +02:00
p4workq tests: samples: cleanup test tags, add integration_platforms 2023-06-02 04:47:06 -04:00
ringbuffer samples, tests: convert string-based twister lists to YAML lists 2023-05-10 09:52:37 +02:00
smf tests: smf: cleanup test metadata 2023-05-25 04:44:11 -04:00
sprintf tests: samples: cleanup test tags, add integration_platforms 2023-06-02 04:47:06 -04:00
spsc_pbuf tests: fix various test identifiers 2023-02-06 10:06:10 +01:00
sys_util tests/samples: use integration_platforms more where it makes sense 2023-05-26 17:52:02 -04:00
thrift/ThriftTest samples, tests: convert string-based twister lists to YAML lists 2023-05-10 09:52:37 +02:00
time
uoscore