python (12.9k questions)
javascript (9.2k questions)
reactjs (4.7k questions)
java (4.2k questions)
java (4.2k questions)
c# (3.5k questions)
c# (3.5k questions)
html (3.3k questions)
Sympy Piecewise and refine
I try to simplify this Piecewise expression using refine without success. I use sympy version 1.8.
import sympy as sp
x,y = sp.symbols('x,y', real=True, positive=True)
expr = sp.Piecewise((1, x>=...
Pierre Joyot
Votes: 0
Answers: 1
How to find bezier coefficients without matrices?
The function get_cubic needs 4 points and i need to find b and c by calculation (a and d is given).
Here is my code and i need help specifically with get_bezier_coef
def get_bezier_coef(points):
#...
Shalev Levi Sagzan
Votes: 0
Answers: 0
How to make a piecewise linear fit in Python with some constant pieces?
I'm trying to make a piecewise linear fit consisting of 3 pieces whereof the first and last pieces are constant. As you can see in this figure
don't get the expected fit, since the fit doesn't captur...
afd
Votes: 0
Answers: 3
Piecewise function in sympy
I would like to define the piecewise function below using the sympy module and then calculate a Fourier series for it.
Unfortunately I have no idea how exactly this works and have not found anything h...
Anton Renker
Votes: 0
Answers: 0