Quote:
want to convert this code with Python.
thats nice .... you'd better get started then. You have two options (maybe more)
1) 'transliterate' - look at the c code, translate it to the closest Python code & write that
2) Analyse the 'functionality' of the c routine, and write that functionality from scratch in Python - there may be quicker constructs in Python that make it easier
obviously test, test, test, a large number of values to make sure what you end up with does what you want
Have fun