Python | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Python

Good day all, so I am trying to work on a bracket class that converts any equation with roots in the left hand side to the right hand side for example sqrt(b) = b^2 - 4ac / 2a then the class powers both sides to eliminate the square root.. Any help on this?

12th May 2021, 5:12 PM
Abdullah
3 Answers
0
I probably didn't get your point, but could you simply store b as some variable var, and then say var**2....? The same you could do for the right-hand side of your equation.... i.e.: var2 = b^2 - 4ac / 2a..., then var2**2.
12th May 2021, 5:17 PM
Tomas Konecny
0
Since your tags say you are doing this in javascript and python, it’s a little confusing. Why don’t you show us your best efforts and we’ll go from there.
12th May 2021, 5:44 PM
Jerry Hobby
Jerry Hobby - avatar
0
Okay let me do that.. thanks
12th May 2021, 5:45 PM
Abdullah