The error message is misleading.
Your function M2 awaits an unitless argument (otherwise you have a unit mismatch in your subtraction) but you feed it with a range with the unit feet.
The error message is misleading.
Your function M2 awaits an unitless argument (otherwise you have a unit mismatch in your subtraction) but you feed it with a range with the unit feet.