C++17 and MATLAB code for gravity and magnetic forward modelling in spherical geometry. Ordinary TLI evaluates the potential and Cartesian derivatives through third order for a homogeneous tesseroid.