Example code for calculating the angle between two celestial objects, implemented as follows:
Description | Source |
---|---|
Pure Python code | angle_between_two_objects_default.ipynb |
Python code optimized for just-in-time compilation, using Numba | angle_between_two_objects_optimized.ipynb |
Python code calling C code, using ctypes | ctypes.ipynb, abo_lib.c |
Python code calling C code, using CFFI | cffi.ipynb, abo_lib.c |
For a walkthough of these implementations, check out this article.