View Single Post
  #1  
Old 01-19-2011, 03:29 AM
dabblercody dabblercody is offline
Tech Assistant
dabblercody's Avatar
Join Date: May 2006
Location: Florida
Posts: 22
dabblercody is on a distinguished road
Quadratic Formula

If anyone can figure out why this formula won't work on Graal.

http://en.wikipedia.org/wiki/Quadrat...dratic_formula


PHP Code:
//#CLIENTSIDE
function onPlayerChats()
{
 if (
player.chat == "/quad")
 {
  
Quad();
 }
}

function 
Quad()
{
 
temp.5;
 
temp.27;
 
temp.10;
 
temp.x1 = (-temp.+ ((temp.b*temp.b-4*temp.a*temp.c)^0.5))/2*temp.a;
 
temp.x2 = (-temp.- ((temp.b*temp.b-4*temp.a*temp.c)^0.5))/2*temp.a;
 
player.chat "Solution is:" SPC temp.x1 SPC temp.x2;

__________________
Dabbler

"Our work is the presentation of our capabilities."
- Goethe, Johann Wolfgang Von
Reply With Quote