![]() |
ABC Theory
I just made a simple workout for the ABC theory, example:
You have the formule: 2x + 3 = 0 You can work this out like.. -3 on both sides, so 2x = - 3 You do it all / 2, and you'll have x = - 1.5... but now You've got this formule: -33.5x² + 1.5x + 4 = 0, how are we going to do this? Fill in for; a: -33.5 b: 1.5 c: 4 PHP Code:
Result: 0.368659933 or -0.323883813 You don't realy have anything that you can use it for in Graal, but whatever, wanted to work it out in a script ;) |
Ahhh mathematics!! Algebra!!
*melts* |
Yes, quadratic formula...I made a program for that on my calculator a few months ago. Cause we were doing it in my Algebra 2 class at the time. I still have it in there, but because I have no clue how to use if statements in its crazy scripting language, it won't work when (b^2-4(a)(c)) is a negative number.
Anyways, a simple, but I suppose useful script. It is possible to use it with non-real numbers though, if you just do it in terms of i. |
Thanks ;p I thought, lets go for some rep++; by posting some scripts (I guess I'll do more later) ^^
|
Quote:
|
Quote:
|
Quote:
|
@ Loriel:
You know what.. go beg some Administrator for a "Un-Graal-Related Code Gallery", so I can post this "noncense" (in your eyes) in there.. everyone has his own style btw, don't complain. And it can be useful for people who don't get the ABC theory with maths, they perhaps can learn from it xP |
Quote:
|
Quote:
|
What? Why not just call it the quadratic formula x-x
|
It's simple but effective, you can do your homework faster with it :D Haha
Like that you have more time for Graal ^^ How comes you don't see that connection? xP PS. I just saw this: Reputation Your reputation on this post is Somewhat Negative. Comments on this Post I disapprove of posting generic math-related snippets just because they are implemented in gscript and also your style kind of sucks Sad, haha. Because my style sucks is not a valid reason, I want my 3 points back ;) |
Hello I'm galdor and I come from earth, nice to meet you all.
(point is that your aliens that somehow see some sence in that square of nonsense) |
Quote:
http://upload.wikimedia.org/math/3/e...a3bb558916.png And Contiga, use the wikipedia article, maybe it'll help you make it do it in terms of i when the discriminant is negative. |
Yeah, um, I learned this back in the 9th grade. You're trying to make it sound a lot more complicated than it really is so that people could be all over you and compliment you, when really you've done nothing spectacular. It's simple math.
It's the quadratic formula, don't try to make it sound like it's anything else. |
lol.
im in 11th grade, and still haven't even seen that ****. lol. |
Quote:
|
Quote:
If so, not really, I'm just suggesting something to Contiga...no need to see to far into things... |
Quote:
|
Quote:
Well...as I'm sure you know, you can't do a square root of a negative number and get a real number. But you can still represent it with i. For example: (-12)^.5 would be i(12)^.5 Basically i is equal to (-1)^.5 |
Quote:
No, not you, Contiga. |
Quote:
|
Quote:
I'm not sure if it's possible to get it to work like that, but maybe. (Hey, if my TI-84 can do it, maybe it can be done in gs2 ;[) |
| All times are GMT +2. The time now is 10:17 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.