Also test the isscalar function (which is deliberately a bit more lax).
Python sample codes and textbook for robotics algorithms. - AtsushiSakai/PythonRobotics ...