Convert Python Function FSum from C code to Delphi code
$10-30 USD
Em Andamento
Publicado há aproximadamente 8 anos
$10-30 USD
Pago na entrega
In Python we have from C summation FSum function, that can return exact sum of real numbers sequence(array). Its a bit complicated coz using Shewchuk's "Adaptive Precision Floating-Point Arithmetic and Fast Robust Geometric Predicates" print source and based on tight principles of IEEE-754 arithmetic.
Have template code in Python and perfect C code for Python,
Sources:
1. from Python cookbook msum function:
[login to view URL]
2. perfectly written and commented fsum function in C for python:
[login to view URL]
I need that function in Delphi for using with an open array of extended type as input and return result in extended.