Handy and convenient app that transposes any eyeglass prescription from minus cylinder form to plus cylinder form, or from plus cylinder to minus cylinder. Helpful for optometrists, ophthalmologists, opticians and their staff. Avoid errors in prescription transmission, or use to double check transpositi...
"""# First move the molecule to the origin# In contrast to MATLAB, numpy broadcasts the smaller array to the larger# row-wise, so there is no need to play with the Kronecker product.rcoords = coords - rotp# First Euler rotation about z in matrix formD = m.array(((m.cos(phi), ...
"" # Number of interpolation points minus one n = 5 toll = 1.e-6 points = np.linspace(0, 1, (n+1) ) R = 1 P = 1 control_points_2d = np.asmatrix(np.zeros([n+1,2]))#[np.array([R*np.cos(5*i * np.pi / (n + 1)), R*np.sin(5*i * np.pi / (n + 1)),...