import numpy as np; x = np.radians([0, 45, 90]); t = np.tan(x); t[np.abs(t) > 8] = np.nan; print(int(np.isnan(t).sum()), round(float(t[1]), 1))
Log in to join the discussion.
Loading…