Python Sympy: A powerful tool for calculating calculus

The calculations of calculus may not be used in daily life, which makes people feel a bit advanced. But in fact, in the eyes of mathematics majors, it is just an extremely common calculation, a common calculation method at the same level as addition, subtraction, multiplication and division. Calculus and limiting operations are not difficult […]

sympy Jones matrix of polarized optics

Jones vector Assuming that the light wave propagates along the z-axis, the electric field components in the three directions can be expressed as E. x = A x cos ? ( ω t ? k r + φ x ) E. the y = A t cos ? ( ω t ? k r + […]

Python scientific computing: Sympy2

Yesterday morning, I mainly learned some basic syntax of Sympy. I feel that this package itself has strong characteristics, and I hope it can play a better role in subsequent calculations. First of all, let’s learn some basic calculus functions: import sympy as sy #differential: sy.diff(D,x) D.diff(x) #The second differential method relies on D being […]