How can I solve ax^2+bx+c<0 in python? - Python
Аноним
8/19/2021, 2:15:37 PM
Ответов:
How can I solve ax^2+bx+c<0 in python?

Ответы (31)

Аноним
8/19/2021, 2:19:09 PM

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

Аноним
8/19/2021, 2:19:47 PM

I googled it but I could not find solution

Аноним
8/19/2021, 2:20:08 PM

what is complex math module?

Аноним
8/19/2021, 2:20:27 PM

A math module

Аноним
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

Аноним
8/19/2021, 2:21:40 PM

thank you for your help

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

Аноним
8/19/2021, 2:22:37 PM

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

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

Аноним
8/19/2021, 2:24:39 PM

😁😁automatically means usng built in procedures or commans

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

Аноним
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

oh i just realized that wasn't what you wanted

also sympy has inequality solvers

Аноним
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

Аноним
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

i see now what your problem is

Аноним
8/19/2021, 2:37:59 PM

Im confused how can I solved it 😔😔

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

Аноним
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)

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.

Аноним
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

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

come to @pythonofftopic, as this is not python related

Аноним
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

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

Аноним
8/19/2021, 2:58:13 PM

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

Аноним
8/19/2021, 3:01:55 PM

ok thnx a lot for your help I joined

Ahmad Al-Ateek
8/19/2021, 4:10:24 PM

it is a hard problem

Аноним
8/19/2021, 4:18:21 PM

yes it is

Похожие вопросы по теме Python

fsdevel
2/3/2021, 8:06:49 PM
Ответов: 30
I have an small storage about 64byte and want to save this

code in it can somebody compact it more? nums = [ input for num in range11 ] printnums[10] in nums[:10]

MRN00P
3/22/2021, 11:08:24 AM
Ответов: 29
Hello, I got this code: for i in range 1000000000, 1299999999:

x = 0 printx,i and I would like to make it print without a space between the x and the i .. what should I do?

BprMain
1/22/2021, 7:32:55 AM
Ответов: 29
How can I update for my python package?
Аноним
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?

KING_MS_7
5/3/2021, 5:09:28 PM
Ответов: 27
I want to know what we can do with python?
yashrj25
4/8/2021, 12:07:28 PM
Ответов: 27
How to extract "25APR19" from "ACC25APR191480PE"?
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?