@all,
an additional Sqrt function is now in the unit uFix64. The results are (@16MHz):
The execution time of a Sqrt is very important for trigonometry because it is heavily used there.
As you can see the precision is the same as with double precision float and the speed is high or at least moderate
rolf
an additional Sqrt function is now in the unit uFix64. The results are (@16MHz):
Code
F1 + F2 speed : 7usec
F1 - F2 speed : 8usec
F1 * F2 speed : 250usec
F1 / F2 speed : 500usec
Sqr speed : 250usec
Sqrt speed : 0.5msec result : 5 frac digits
Fix64Sqrt speed : 2.2msec result : 9 frac digits
Delphi Sin(3.0) result : 0.14112000806
AVRco Sin(3.0) result : 0.141120008 5..8msec
F1 - F2 speed : 8usec
F1 * F2 speed : 250usec
F1 / F2 speed : 500usec
Sqr speed : 250usec
Sqrt speed : 0.5msec result : 5 frac digits
Fix64Sqrt speed : 2.2msec result : 9 frac digits
Delphi Sin(3.0) result : 0.14112000806
AVRco Sin(3.0) result : 0.141120008 5..8msec
The execution time of a Sqrt is very important for trigonometry because it is heavily used there.
As you can see the precision is the same as with double precision float and the speed is high or at least moderate
rolf