Official Everybody Edits Forums

Do you think I could just leave this part blank and it'd be okay? We're just going to replace the whole thing with a header image anyway, right?

You are not logged in.

#1 2018-01-11 22:01:38

Latif
Member
From: The Netherlands
Joined: 2015-03-13
Posts: 1,206

pls HELp with maths

I'm making an EE bot and I need HELp because I suck at maths. So I need someone who's good at maths.

I have:
y = x * 25 + (x * 25) ^ 2

and I want it inverted:
x = ...

HELp is much appreciated.

Offline

#2 2018-01-11 22:15:08, last edited by Gosha (2018-01-12 04:47:24)

Gosha
Member
From: Russia
Joined: 2015-03-15
Posts: 6,211

Re: pls HELp with maths

It's a quadratic equation, there are 2 answers for x with every input of y

let z = (x * 25)
y = z + z^2
z^2 + z - y = 0
z = (-1 ± √(1 + 4y))/2
You'll get 2 answers for the z
z1 =  (-1 + √(1 + 4y))/2
z2 =  (-1 - √(1 + 4y))/2

then for each z find x

x = z/25

Edit: please note that if y = -¼ there will be only 1 answer because
± √0  is the same value for + and -

Also note that if y < -¼ you'll get negative value and you can't √ the negative value

So be sure to add some checks

Offline

Wooted by: (3)

#3 2018-01-11 22:16:41

Ruben101
Member
From: The Netherlands, not Holland
Joined: 2015-02-18
Posts: 79

Re: pls HELp with maths

Gosha wrote:

It's a quadratic equation, there are 2 answers for x with every input of y

let z = (x * 25)
y = z + z^2
z^2 + z - y = 0
z = (-1 ± √(1 + 4y))/2
You'll get 2 answers for the z
z1 =  (-1 + √(1 + 4y))/2
z2 =  (-1 - √(1 + 4y))/2

then for each z find x

x = z/25

what did i just read xD


a598AAZ.gif

Youtube: RubenEditIT

Offline

#4 2018-01-11 22:22:45

Gosha
Member
From: Russia
Joined: 2015-03-15
Posts: 6,211

Re: pls HELp with maths

Ruben101 wrote:

what did i just read xD

Standard formula for quadratic equation

ax^2 + bx + c = 0

D = b^2 + 4ac

x = -b ± √D
          2a

Offline

Wooted by: (3)

#5 2018-01-11 22:34:12

LukeM
Member
From: England
Joined: 2016-06-03
Posts: 3,009
Website

Re: pls HELp with maths

What are you using it for? :O

Any bot that requires actual maths gets bonus points from me //forums.everybodyedits.com/img/smilies/smile

Offline

#6 2018-01-11 22:34:36

Firecrackericebreak
Member
Joined: 2015-02-15
Posts: 616

Re: pls HELp with maths

y = x * 25 + (x * 25) ^ 2
y = x * 25 + x^2 + 50x + 625
y = x^2 + 75x + 625

y = ax^2 + bx + c

in this case:

a = 1
b = 75
c = 625

substitute these in for the quadratic formula which is as follows:

x = (-b ± √( ̅b^2 - 4ac )) / 2a
x = (-75 ± √(75^2 - 4(1)(625)) / 2(1)

and there is your x equals

if you want it even more simplified (after solving the equation):

x = -9.54915028125263 or -65.45084971874738

Offline

#7 2018-01-11 22:39:57, last edited by LukeM (2018-01-12 00:29:20)

LukeM
Member
From: England
Joined: 2016-06-03
Posts: 3,009
Website

Re: pls HELp with maths

Firecrackericebreak wrote:

You forgot about the y (to use the quadratic equation you need the other side to = 0), so you've only found the answer for y = 0

(I'm pretty sure Gosha's answer is correct though)

Edit: Oh wait, I didnt notice it was * not + as well (wasnt just you XD)

Offline

#8 2018-01-11 23:38:11

Zumza
Member
From: root
Joined: 2015-02-17
Posts: 4,656

Re: pls HELp with maths

Firecrackericebreak wrote:

y = x * 25 + (x * 25) ^ 2
y = x * 25 + x^2 + 50x + 625

You must be American


Everybody edits, but some edit more than others

Offline

Wooted by:

#9 2018-01-12 00:13:50

TaskManager
Formerly maxi123
From: i really should update this
Joined: 2015-03-01
Posts: 9,465

Re: pls HELp with maths

Zumza wrote:
Firecrackericebreak wrote:

y = x * 25 + (x * 25) ^ 2
y = x * 25 + x^2 + 50x + 625

You must be American

i dont get this meme HELp


i8SwC8p.png
signature by HG, profile picture by bluecloud, thank!!
previous signature by drstereos

Offline

#10 2018-01-12 00:19:09, last edited by Bimps (2018-01-12 00:27:04)

Bimps
Member
Joined: 2015-02-08
Posts: 5,067

Re: pls HELp with maths

so im gonna rewrite the equation as
y=(25x)^2+(25x)
because it is easier on my eyes
then i simplify and idk if im right
y-25x=(25x)^2
sqrt(y-25x)=25x
(sqrt(y-25x))/25=x
(sqrt(y-x))=x

so x=(sqrt(y-x)) is maybe the right answer. you probably was x on one side and maybe ill try it later but right now idek if this is right but yeah ok

on another note

Zumza wrote:
Firecrackericebreak wrote:

y = x * 25 + (x * 25) ^ 2
y = x * 25 + x^2 + 50x + 625

You must be American

why do u say that





EDIT: if i use my quadratic program i get
y=(x+1)x
so
y=x^2+x
y-x=x^2
sqrt(y-x))=x
holy **** i actually did it right.... wow. yeet





EDIT2:

Firecrackericebreak wrote:

y = x * 25 + (x * 25) ^ 2
y = x * 25 + x^2 + 50x + 625

(25x)^2 != x^2 +50x +625. you thought of it as x + 25, but it isnt. therefore your entire post is for y=25x + (x +25)^2. those insane answers probably wouldnt with an equation as simple as this soo yeah

Offline

Wooted by:

#11 2018-01-12 00:31:44

LukeM
Member
From: England
Joined: 2016-06-03
Posts: 3,009
Website

Re: pls HELp with maths

Bimps wrote:

those insane answers probably wouldnt with an equation as simple as this soo yeah

Youd be surprised how unlikely getting nice numbers is in the real world when you have an x^2 (exams etc use numbers specifically chosen becuase they use nice results)

Offline

#12 2018-01-12 00:32:49, last edited by Bimps (2018-01-12 00:50:53)

Bimps
Member
Joined: 2015-02-08
Posts: 5,067

Re: pls HELp with maths

LukeM wrote:
Bimps wrote:

those insane answers probably wouldnt with an equation as simple as this soo yeah

Youd be surprised how unlikely getting nice numbers is in the real world when you have an x^2 (exams etc use numbers specifically chosen becuase they use nice results)

yeah im aware but when a quadratic has a = 25, b = 25, and c = 0 the results arent gonna be...whatever that was


EDIT: also firebreaker, you used the quadratic equation wrong. it shouldve been y=, not x= . y = those two numbers. then you can factor it back in and simplify easier or whatever


EDIT: after consulting wolfram alpha, the equation is only true with the 3 following integer pairs: (0,0) (1,2) and (2,6)
here is the image it spat out
gif&s=42

EDIT: there's more solutions than those three

Offline

#13 2018-01-12 00:45:37, last edited by LukeM (2018-01-12 00:48:21)

LukeM
Member
From: England
Joined: 2016-06-03
Posts: 3,009
Website

Re: pls HELp with maths

Bimps wrote:
LukeM wrote:

yeah im aware but when a quadratic has a = 25, b = 25, and c = 0 the results arent gonna be...whatever that was

EDIT: also firebreaker, you used the quadratic equation wrong. it shouldve been y=, not x= . y = those two numbers. then you can factor it back in and simplify easier or whatever

It was c = -y not c = 0, so you cant just get two numbers (and for the majority of cases it wont give a nice answer)

(and they needed to move the y to the right hand side, not put the quadratic equation equal to y, its specifically to find the variable used in the expression, not the expression's value)

Offline

#14 2018-01-12 00:58:42

Bimps
Member
Joined: 2015-02-08
Posts: 5,067

Re: pls HELp with maths

LukeM wrote:
Bimps wrote:
LukeM wrote:

yeah im aware but when a quadratic has a = 25, b = 25, and c = 0 the results arent gonna be...whatever that was

EDIT: also firebreaker, you used the quadratic equation wrong. it shouldve been y=, not x= . y = those two numbers. then you can factor it back in and simplify easier or whatever

It was c = -y not c = 0, so you cant just get two numbers (and for the majority of cases it wont give a nice answer)

(and they needed to move the y to the right hand side, not put the quadratic equation equal to y, its specifically to find the variable used in the expression, not the expression's value)


****

i thought 25x^2 was 25(x^2)
the x-intercepts are actually -1/25 and 0
so
y=(25x+1)x
y/(25x+1)=x
is that right

**** this

Offline

#15 2018-01-12 01:25:24, last edited by TaskManager (2018-01-12 06:45:54)

TaskManager
Formerly maxi123
From: i really should update this
Joined: 2015-03-01
Posts: 9,465

Re: pls HELp with maths

why are you all people resolving that equation smh gosha did it already
i guess ill hop on the bandwagon

y = x * 25 + (x * 25) ^ 2
y = 25(x + 25x^2)
x + 25x^2 = y/25
25x^2 + x - y/25 = 0
D = 1 - 4 * 25 * (-y/25) = 1 + 4y;
1 + 4y = 0 --> if y=-1/4 then there is one real value for X;
1 + 4y > 0 --> if y > -1/4 then there are two real values for X;
if y < -1/4 then the X1 and X2 are complex values;
X1 = (-1 - sqrt(D))/ 50
X2 = (-1 + sqrt(D))/ 50
where D = 1 + 4y

final result:
X1 = (-1 - sqrt(1+4y))/50
X2 = (-1 + sqrt(1+4y))/50

(checked the result with desmos, it does match)


Gosha wrote:

Also note that if y < -1 you'll get negative value and you can't √ the negative value

incorrect. the critical point is y = -1/4 because you're taking sqrt(1+4y)


Edit: my bad, forgot a pair of brackets in the final result


i8SwC8p.png
signature by HG, profile picture by bluecloud, thank!!
previous signature by drstereos

Offline

Wooted by:

#16 2018-01-12 03:26:55

Abelysk
Guest

Re: pls HELp with maths

This thread is giving me PTSD from the F grade I got

#17 2018-01-12 09:07:34, last edited by Latif (2018-01-12 11:37:39)

Latif
Member
From: The Netherlands
Joined: 2015-03-13
Posts: 1,206

Re: pls HELp with maths

Thanks for the HELp guys //forums.everybodyedits.com/img/smilies/big_smile

EDIT: @LukeM this is not for an EE bot I thought I would make it for EE lol.

Offline

#18 2018-01-12 17:04:56, last edited by Anatoly (2018-01-12 17:10:13)

Anatoly
Guest

Re: pls HELp with maths

Forget this.

https://www.kontrolnaya-rabota.ru/s/equ … =-10&b0=10
https://www.kontrolnaya-rabota.ru/s/equ … =-10&b0=10

#19 2018-01-12 17:21:04

TaskManager
Formerly maxi123
From: i really should update this
Joined: 2015-03-01
Posts: 9,465

Re: pls HELp with maths

AnatolyEE wrote:
Forget this.

https://www.kontrolnaya-rabota.ru/s/equ … =-10&b0=10
https://www.kontrolnaya-rabota.ru/s/equ … =-10&b0=10

you ain't tricking us with these russian spying links!


i8SwC8p.png
signature by HG, profile picture by bluecloud, thank!!
previous signature by drstereos

Offline

Wooted by:

#20 2018-01-12 17:26:54

Anatoly
Guest

Re: pls HELp with maths

maxi123 wrote:

you ain't tricking us with these Russian spying links!

But I'm too young for a spy. Also if I'd spy, then definitely not you!

#21 2018-01-12 18:13:41

TaskManager
Formerly maxi123
From: i really should update this
Joined: 2015-03-01
Posts: 9,465

Re: pls HELp with maths

AnatolyEE wrote:
maxi123 wrote:

you ain't tricking us with these Russian spying links!

But I'm too young for a spy. Also if I'd spy, then definitely not you!

well obviously because you already got caught


i8SwC8p.png
signature by HG, profile picture by bluecloud, thank!!
previous signature by drstereos

Offline

Wooted by:

rat

#22 2018-01-13 18:19:58

Anatoly
Guest

Re: pls HELp with maths

maxi123 wrote:

Can only say: President Medvedev

#23 2018-01-13 18:31:02

kreacher
Member
From: Wakanda
Joined: 2015-03-31
Posts: 409

Re: pls HELp with maths

nice a challenge ill try


MQneHSv.png

Est. December 2010

Offline

#24 2018-01-13 18:44:16, last edited by kreacher (2018-01-13 18:46:05)

kreacher
Member
From: Wakanda
Joined: 2015-03-31
Posts: 409

Re: pls HELp with maths

Firecrackericebreak wrote:

y = x * 25 + (x * 25) ^ 2
y = x * 25 + x^2 + 50x + 625

um (x*25)(x*25)=x^2+625 its not (x+25)(x+25) so u dont times them all by each other


is this right? y=25x+625x^2
625x^2+25x=0
(-25+(625-2500))/1250=-1.52
(-25-(625-2500))/1250=0.74


MQneHSv.png

Est. December 2010

Offline

#25 2018-01-13 18:56:03, last edited by LukeM (2018-01-13 18:56:12)

LukeM
Member
From: England
Joined: 2016-06-03
Posts: 3,009
Website

Re: pls HELp with maths

kreacher wrote:

y=25x+625x^2
625x^2+25x=0

AAAHHHHH!!!!! WHY DOES EVERYONE FORGET ABOUT THE y?????
625x^2 + 25x - y=0

other than that I think its correct though //forums.everybodyedits.com/img/smilies/smile

(also I'm pretty sure Gosha's answer is correct, so use that to check)

Offline

TaskManager1516358880693009

Board footer

Powered by FluxBB

[ Started around 1732965853.0936 - Generated in 0.154 seconds, 14 queries executed - Memory usage: 1.88 MiB (Peak: 2.19 MiB) ]