Category "symbolic-math"

Efficiently isolating the coefficients and exponents of an array of polynomials (Python)

In Python, I do some SymPy calculations that yield an array full of polynomials in the variables a, b, c, d, e and f such as: array([b*d*e*f, 0, 0, d**3*e, b*d*

Delta operator in sympy

Is it possible to make a delta operator like this in sympy? Im not really sure how to code it. Should be really eazy if there exists a method.

Define a function with a fractional power in python

I want to defining the following function: def f(x,y): return pow(x, 1/3) + y x = np.linspace(-1, 1, 10) y = np.linspace(-1, 1, 10) X, Y = np.meshgrid(x,