This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2011-03-14 19:03:50

aweman
Scratcher
Registered: 2008-06-22
Posts: 100+

Quadratic Equation Glitch

Today in school we worked on simple quadratic equation. I plugged (X+1)(X-3)=0, and it said false. I got rid of the =0 to make it (X+1)(X-3), and it said -3. This is correct, but now plug in -1. That's right too! Just something interesting to think about.

Offline

 

#2 2011-03-14 19:37:25

gettysburg11
Scratcher
Registered: 2008-06-14
Posts: 1000+

Re: Quadratic Equation Glitch

It should be 3, and not -3 as far as I know. Is that just a typo or did it tell you -3?


http://i256.photobucket.com/albums/hh184/mnacmilan/LOGO_ACMILAN-Splash.gif

Offline

 

#3 2011-03-14 19:45:52

Harakou
Community Moderator
Registered: 2009-10-11
Posts: 1000+

Re: Quadratic Equation Glitch

(x+1)(x-3) = x^2 - 2x - 3. You have to make sure you have the correct value of x, otherwise, it won't come out right.

Edit: I've tried it, and Scratch evaluates it fine. What seems to be the problem?

Last edited by Harakou (2011-03-14 19:47:25)


http://www.blocks.scratchr.org/API.php?action=random&return=image&link1=http://i.imgur.com/OZn2RD3.png&link2=http://i.imgur.com/duzaGTB.png&link3=http://i.imgur.com/CrDGvvZ.png&link4=http://i.imgur.com/POEpQyZ.png&link5=http://i.imgur.com/ZKJF8ac.png

Offline

 

#4 2011-03-14 20:23:03

fullmoon
Retired Community Moderator
Registered: 2007-06-04
Posts: 1000+

Re: Quadratic Equation Glitch

aweman wrote:

Today in school we worked on simple quadratic equation. I plugged (X+1)(X-3)=0, and it said false. I got rid of the =0 to make it (X+1)(X-3), and it said -3. This is correct, but now plug in -1. That's right too! Just something interesting to think about.

What were you plugging it in on? If you're using a standard calculator then you need to be in some sort of solver mode to get it to give you the answer, not just evaluate what you type in. If you just plugged in X without an equals sign (assuming you haven't assigned it a value, making it zero), then (0+1)(0-3) would of course equal -3!

By the way, I moved this to Misc. where it belongs.  smile


http://i302.photobucket.com/albums/nn100/fullmoon32/wow.jpg

Offline

 

#5 2011-03-14 20:32:26

Kileymeister
Scratcher
Registered: 2008-04-17
Posts: 1000+

Re: Quadratic Equation Glitch

fullmoon wrote:

aweman wrote:

Today in school we worked on simple quadratic equation. I plugged (X+1)(X-3)=0, and it said false. I got rid of the =0 to make it (X+1)(X-3), and it said -3. This is correct, but now plug in -1. That's right too! Just something interesting to think about.

What were you plugging it in on? If you're using a standard calculator then you need to be in some sort of solver mode to get it to give you the answer, not just evaluate what you type in. If you just plugged in X without an equals sign (assuming you haven't assigned it a value, making it zero), then (0+1)(0-3) would of course equal -3!

By the way, I moved this to Misc. where it belongs.  smile

On most calculators, not giving X a value makes the calculator give you the answer in terms of X.  In this case, X^2 - 2X - 3.

Perhaps you typed it in wrong?  A typo with the parentheses?


I'm back, and showcasing two new* projects!  Click left or right on the image below to see!
http://img109.imageshack.us/img109/7905/part1l.pnghttp://img859.imageshack.us/img859/6417/part2bf.png

Offline

 

#6 2011-03-14 20:58:27

fullmoon
Retired Community Moderator
Registered: 2007-06-04
Posts: 1000+

Re: Quadratic Equation Glitch

Kileymeister wrote:

On most calculators, not giving X a value makes the calculator give you the answer in terms of X.  In this case, X^2 - 2X - 3.

Really? What sort of calculator are you using? I gotta get me one of those  big_smile


http://i302.photobucket.com/albums/nn100/fullmoon32/wow.jpg

Offline

 

#7 2011-03-14 21:05:01

aweman
Scratcher
Registered: 2008-06-22
Posts: 100+

Re: Quadratic Equation Glitch

I'm not sure we're talking about the same quadratic equations here XD. Mine are trinomials with an equation ax^2+bx+c. When you do (x+1)=0, x=-1, then 0(x-3) HAS to be one because 0 times anything equals 0. However, when you do (x-3)=0, you get 3. The same principle applies; 0(x+3)=0. Therefore x=-1 and 3, but Scratch says -3, which isn't correct! I just though it was interesting. Also, I didn't use a calculator, I did that part in my head.
Edit: I forgot to add we also did these using factoring.

Last edited by aweman (2011-03-14 21:06:30)

Offline

 

#8 2011-03-14 21:07:33

Kileymeister
Scratcher
Registered: 2008-04-17
Posts: 1000+

Re: Quadratic Equation Glitch

aweman wrote:

I'm not sure we're talking about the same quadratic equations here XD. Mine are trinomials with an equation ax^2+bx+c. When you do (x+1)=0, x=-1, then 0(x-3) HAS to be one because 0 times anything equals 0. However, when you do (x-3)=0, you get 3. The same principle applies; 0(x+3)=0. Therefore x=-1 and 3, but Scratch says -3, which isn't correct! I just though it was interesting. Also, I didn't use a calculator, I did that part in my head.

I don't follow.  In the equation 0(3X+3)=0, X is equal to every number in existence, because anything multiplied by 0 is 0.  Therefore X is undefined.

It's the same principal as 0/0, that is equal to every number in existence and is therefore undefined (this is not true for 1/0 or any other number, that is undefined because no value can render it correct).

Last edited by Kileymeister (2011-03-14 21:08:21)


I'm back, and showcasing two new* projects!  Click left or right on the image below to see!
http://img109.imageshack.us/img109/7905/part1l.pnghttp://img859.imageshack.us/img859/6417/part2bf.png

Offline

 

#9 2011-03-15 17:15:45

aweman
Scratcher
Registered: 2008-06-22
Posts: 100+

Re: Quadratic Equation Glitch

I see your point, but X has already been decided as -1 in that situation. And you meant -3, not +3.

Offline

 

#10 2011-03-15 17:41:03

Harakou
Community Moderator
Registered: 2009-10-11
Posts: 1000+

Re: Quadratic Equation Glitch

I think we've established that we know how quadratics work.  tongue  (By the way, ax^2 + bx + c is standard form; (dx + e)(fx + g) is factored form.)

What we really need to know is what you're "putting into" Scratch to get the output you are describing. As I've said before, Scratch evaluates it fine for me. It's likely that you made a simple error. Could we see a screenshot or an upload of this project?


http://www.blocks.scratchr.org/API.php?action=random&return=image&link1=http://i.imgur.com/OZn2RD3.png&link2=http://i.imgur.com/duzaGTB.png&link3=http://i.imgur.com/CrDGvvZ.png&link4=http://i.imgur.com/POEpQyZ.png&link5=http://i.imgur.com/ZKJF8ac.png

Offline

 

#11 2011-03-15 17:55:15

soupoftomato
Scratcher
Registered: 2009-07-18
Posts: 1000+

Re: Quadratic Equation Glitch

Whoah, SIMPLE quadratic?

You nerds . . .


I'm glad to think that the community will always be kind and helpful, the language will always be a fun and easy way to be introduced into programming, the motto will always be: Imagine, Program, Share - Nomolos

Offline

 

#12 2011-03-15 18:10:21

echs
Scratcher
Registered: 2010-03-18
Posts: 1000+

Re: Quadratic Equation Glitch

wow, you actually are just starting quadratic equations?
i did that like 3 years ago
now it's ∭_y!^∑▒abc▒〖√x〗  if a2x = y3 /  b!c!


http://i45.tinypic.com/35m4llw.gif

Offline

 

#13 2011-03-15 18:15:02

zawicki1fromyoutube
Scratcher
Registered: 2008-07-31
Posts: 1000+

Re: Quadratic Equation Glitch

gettysburg11 wrote:

It should be 3, and not -3 as far as I know. Is that just a typo or did it tell you -3?

Getty  big_smile  Get on my chat plz  big_smile


|Call Of Duty: Black Ops Wii Friend Code: 3519-4456-0013|
|Follow me on Twitter|Subscribe To My Youtube Channel

Offline

 

#14 2011-03-15 18:52:21

Kileymeister
Scratcher
Registered: 2008-04-17
Posts: 1000+

Re: Quadratic Equation Glitch

aweman wrote:

I see your point, but X has already been decided as -1 in that situation. And you meant -3, not +3.

Oh, wait, I only took a simplified version and mistook it to be a separate equation.

You do know that in most quadratics you get multiple answers, right?  Often up to four or sometimes more.  I assumed you did and this may be the cause of the confusion.  I thought you were trying to prove something different.

Last edited by Kileymeister (2011-03-15 18:57:00)


I'm back, and showcasing two new* projects!  Click left or right on the image below to see!
http://img109.imageshack.us/img109/7905/part1l.pnghttp://img859.imageshack.us/img859/6417/part2bf.png

Offline

 

#15 2011-03-16 16:28:50

MrsCullen2222
Scratcher
Registered: 2010-01-23
Posts: 17

Re: Quadratic Equation Glitch

I'm doing the same thing! But we haven't learned how to factor them yet. We learned to solve them this way:

x= -b - (radical sign) b(squared) - 4ac
     ---------------------------------------- (its a fraction bar  smile  )
              2a

but since all quadratic equations are porabolas, you should get 2 different answers for x

(sorry if this is wrong- we just started learning it)


"District 12- where you can starve to death in safety" ~Katniss Everdeen- The Hunger Games
TEAM PEETA!

Offline

 

#16 2011-03-16 16:33:05

Kileymeister
Scratcher
Registered: 2008-04-17
Posts: 1000+

Re: Quadratic Equation Glitch

MrsCullen2222 wrote:

I'm doing the same thing! But we haven't learned how to factor them yet. We learned to solve them this way:

x= -b - (radical sign) b(squared) - 4ac
     ---------------------------------------- (its a fraction bar  smile  )
              2a

but since all quadratic equations are porabolas, you should get 2 different answers for x

(sorry if this is wrong- we just started learning it)

That is correct, however sometimes you can get more than 2 answers (or sometimes one answer if one of the answers doesn't factor in correctly, which can happen), because sometimes you get imaginary answers in terms of i (the square root of -1) which still work when plugged in.

Last edited by Kileymeister (2011-03-16 16:33:19)


I'm back, and showcasing two new* projects!  Click left or right on the image below to see!
http://img109.imageshack.us/img109/7905/part1l.pnghttp://img859.imageshack.us/img859/6417/part2bf.png

Offline

 

#17 2011-03-16 16:40:59

DarthPickley
Scratcher
Registered: 2008-06-13
Posts: 100+

Re: Quadratic Equation Glitch

soupoftomato wrote:

Whoah, SIMPLE quadratic?

You nerds . . .

quadratics are extremely simple algebraically.

factorable are easier to solve

non-reducable are not solvable without complex numbers.

like 1+x^2

Offline

 

#18 2011-03-19 13:02:20

MrsCullen2222
Scratcher
Registered: 2010-01-23
Posts: 17

Re: Quadratic Equation Glitch

Kileymeister wrote:

MrsCullen2222 wrote:

I'm doing the same thing! But we haven't learned how to factor them yet. We learned to solve them this way:

x= -b - (radical sign) b(squared) - 4ac
     ---------------------------------------- (its a fraction bar  smile  )
              2a

but since all quadratic equations are porabolas, you should get 2 different answers for x

(sorry if this is wrong- we just started learning it)

That is correct, however sometimes you can get more than 2 answers (or sometimes one answer if one of the answers doesn't factor in correctly, which can happen), because sometimes you get imaginary answers in terms of i (the square root of -1) which still work when plugged in.

oh ok! we havent learned to factor the equation yet... we skipped to polynomials  smile


"District 12- where you can starve to death in safety" ~Katniss Everdeen- The Hunger Games
TEAM PEETA!

Offline

 

Board footer