Contact
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutSign UpSign In
| Download
Views: 208
from sympy.physics.units import * from sympy import * print("\n--- a: -------------------------------") c = 5 print("\n--- b: -------------------------------") c = 5 *m for phi in (0,30,45,60,90): p = phi*pi/180 cp = cos(p) sp = sin(p) a = c*cp b = c*sp # pprint(N(a,2)) pprint(N(b,2))
--- a: ------------------------------- --- b: ------------------------------- 0 2.5*m 3.5*m 4.3*m 5.0*m