Re: [sympy] Unable to solve the following set of equations

2024-05-25 Thread Shishir Kushwaha
I'm sorry , I meant to write x1=0, x2=10. It gives Eq(Piecewise(((5 + b/(4*a))*sqrt(400*a**2 + 40*a*b + b**2 + 1) - log(4*a*b + 4*sqrt(b**2 + 1)*sqrt(a**2))/(4*sqrt(a**2)) + log(80*a**2 + 4*a*b + 4*sqrt(400*a**2 + 40*a*b + b**2 + 1)*sqrt(a**2))/(4*sqrt(a**2)) - b*sqrt(b**2 + 1)/(4*a), ((a > -o

Re: [sympy] Unable to solve the following set of equations

2024-05-25 Thread Aaron Meurer
With x1 = x2 = 0, arc_length_expr is equal to 0, meaning your eq3 is invalid. You can see this if you print eq3. It gets set to False, because it is 0 = 10. Aaron Meurer On Sat, May 25, 2024 at 5:26 PM Shishir Kushwaha wrote: > > In the following piece of code I am unable to get the values of a

[sympy] Unable to solve the following set of equations

2024-05-25 Thread Shishir Kushwaha
In the following piece of code I am unable to get the values of a,b and c after solving them. Is there a different way to solve it and what am i doing wrong. Take x1 = 0 , y1=10, x2=0, y2=10, length = 20. def get_lowest_point(self): a, b, c, x = symbols('a b c x') x1, y1 = self._left_support