We tested a new implementation of the sincos function extracted from the musl libc library The tests were made of the rtpc10(new operating system) and an the rtpcoptics (previous operating system)
Tests on rtpc10 :
- computation elapsed time: this plot show
- at the top the elapsed time for the sin and con function from the glibm mathematical library,
- at the middle the elapsed time for the sincos function from the glibm mathematical library
- at the bottom the he elapsed time for the sincos function from the musl mathematical libray
- precision: this plot show the difrerence of sin and cos and the returns values of the sincos function (top) or the mul_sincos function(botton):
- there is no error between sin and cos functions and sincos function leading to think that sincos function calls directly the sin and cos functions
- There is no more jumps of computation elapsed time using the musl_sincos implementation and the error between the musl_sincos and sin/cos is lower that 0.2e-15.
Precision Tests on rtpcoptics:
- this plot show the difrerence of sin and cos and the returns values of the sincos function (top) or the mul_sincos function(botton) .In these 2 cases there is roughly the same error with the sincos function or the musl_sincos function conpared to the sin and cos function.
Thanks to the results of these tests, we will use the musl_sincos implementation in the Acl software . The same kind of test will be done on cos,sin,atan,atan2,srqt, cbrt and pow mathematical functions to check if the musl implementation is more reliable for real-time point of view..