А

Аноним

8/19/2021, 2:15:37 PM

Ответов:

How can I solve ax^2+bx+c<0 in python?

А

Аноним

8/19/2021, 2:19:09 PM

By using complex math module And you can put this question on google

A

Аноним

8/19/2021, 2:19:47 PM

I googled it but I could not find solution

A

Аноним

8/19/2021, 2:20:08 PM

what is complex math module?

А

Аноним

8/19/2021, 2:20:27 PM

A math module

A

Аноним

8/19/2021, 2:20:52 PM

Is there an example?

А

Аноним

8/19/2021, 2:21:01 PM

Just put this question and open first or second website You can see examples on google

A

Аноним

8/19/2021, 2:21:40 PM

thank you for your help

M|

Manav | won't respond to private messages

8/19/2021, 2:21:54 PM

formulae for the roots of a quadratic equations are well defined. It's high school mathematics

A

Аноним

8/19/2021, 2:22:37 PM

yes I wanted to solve it without delta command and automatically.

M|

Manav | won't respond to private messages

8/19/2021, 2:23:51 PM

what do you mean automatically? python isn't magic. It'll just use that formula, of course with some optimizations but 🤷♂️

A

Аноним

8/19/2021, 2:24:39 PM

😁😁automatically means usng built in procedures or commans

M|

Manav | won't respond to private messages

8/19/2021, 2:30:15 PM

google quadratic solvers and you'd find one 🤔, here's something that will interest you: https://stackoverflow.com/questions/17009774/quadratic-program-qp-solver-that-only-depends-on-numpy-scipy

A

Аноним

8/19/2021, 2:32:57 PM

🙏🙏🙏🌺🌺🌺 thanks a lot infact it is a Quadratic matrix form y^TQy but as I do not know how to solve these types of inequalities I am probing for second order polynomial

M|

Manav | won't respond to private messages

8/19/2021, 2:34:04 PM

oh i just realized that wasn't what you wanted

M|

Manav | won't respond to private messages

8/19/2021, 2:36:00 PM

also sympy has inequality solvers

A

Аноним

8/19/2021, 2:36:00 PM

yes it wasnt the main problem is a quadratic form with two variables as these variables are free I am trying to find out this please consider the arbitrary column vector y=np.array([[?],[?]]) , and this matrix P=np.array([[12137.5, 26.381], [26.381,11438.7]]) (I began with vector y=np.array([[0.1],[0.2]]) as an initial guess) I need to unederstand for which vectors "y" This inequality is valid np.transpose(y)*P*y -8.918847<0.000731 What I have down was that I began with an initial guess y=np.array([[0.1],[0.2]] and randomly I changed y but I could not find suitable y

A

Аноним

8/19/2021, 2:37:08 PM

as I know it just solve one variable inequalities infact my problem is in terms of two variables

M|

Manav | won't respond to private messages

8/19/2021, 2:37:22 PM

i see now what your problem is

A

Аноним

8/19/2021, 2:37:59 PM

Im confused how can I solved it 😔😔

M|

Manav | won't respond to private messages

8/19/2021, 2:41:14 PM

wait a second this is just ytranspose*P*y where is the 2nd variable?

A

Аноним

8/19/2021, 2:42:25 PM

Aha sorry for not explaining y is a 2*1 vector with unknown or free components (e.g. y_1 and y_2)

A

antonio

8/19/2021, 2:48:18 PM

If u don't Want to spent time trying to understand how libraries works, just do a for loop in range (0, 1000000000) and inside of it generate a random y, and see when your inequality is ok. Its like a Montecarlo optimization, is not ok in term of computation, but iy could works.

A

Аноним

8/19/2021, 2:50:11 PM

thank u so much I do not know how can I relate randome y to index of the loop

M|

Manav | won't respond to private messages

8/19/2021, 2:53:37 PM

hmm, i just reduced that and it solves down to (y_1)²*(12137.5 + 26.381) + (y_2)²*(26.381 + 11438.7) < (8.918847 +0.00731) this is just an equation of a circle 🤔 ax^2 + by^2 < c the inequality represents all points inside circle

M|

Manav | won't respond to private messages

8/19/2021, 2:54:44 PM

come to @pythonofftopic, as this is not python related

A

Аноним

8/19/2021, 2:56:14 PM

there would be a term based on y_1*y_2 : 12137.5y_1^2+2(26.381)y_1y_2+11438.7y_2^2

M|

Manav | won't respond to private messages

8/19/2021, 2:57:24 PM

hmm..come to @pythonofftopic. I'll just how you the reduction i did. You can tell me where i am wrong, if i am

A

Аноним

8/19/2021, 2:58:13 PM

well you have dropped the second term. There can I state the problem?

A

Аноним

8/19/2021, 3:01:55 PM

ok thnx a lot for your help I joined

AA

Ahmad Al-Ateek

8/19/2021, 4:10:24 PM

it is a hard problem

A

Аноним

8/19/2021, 4:18:21 PM

yes it is

А

Аноним

10/1/2020, 7:17:56 PM

Ответов: 29

Like what? In the code editor? I dont understand your question

А

Аноним

4/14/2021, 6:35:53 PM

Ответов: 27

Hi, I'm trying to use Pyqt5 to make a GUI. I want

to push a button on it with Right Click of the mouse. I've seen something on Google but I didn't find. How can I do that?

Y

yannisnedostup

12/18/2020, 8:49:22 PM

Ответов: 26

Guys, is it possible to output an array without commas, brackets and

quotes?

А

Аноним

6/21/2021, 2:42:35 PM

Ответов: 26

I have two dictionaries as a json file without any comma seperation

, how do o read the json file ?

А

Аноним

1/21/2021, 9:23:21 PM

Ответов: 30

Hi, I'm learning the basics of web scraping and i've done a

script that helps me with be up to date with my school's important information, i would like to receive some feedback so can i share with you the github repository's link?