Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers DBPro Corner / How to get the Square root?

Author
Message
Xlaydos
20
Years of Service
User Offline
Joined: 26th Mar 2004
Location:
Posted: 17th Mar 2005 02:38
How to get the Square root of a number?
TravisP
20
Years of Service
User Offline
Joined: 30th Jun 2004
Location: Behind you, with a knife!
Posted: 17th Mar 2005 02:43
sqrt(number)

Note: The above I didn't say, your just crazy.

Not a ripoff of The Twilight Zone
Xlaydos
20
Years of Service
User Offline
Joined: 26th Mar 2004
Location:
Posted: 17th Mar 2005 02:45
Thanks
Three Score
20
Years of Service
User Offline
Joined: 18th Jun 2004
Location: behind you
Posted: 17th Mar 2005 02:45 Edited at: 17th Mar 2005 02:45
edited
oops i didnt realize that command was in there

X-Patch x-patch.exe(gui):75% make.exe:5% x-patch.dll(runtime dll):0% developed on win xp home sp2
Xlaydos
20
Years of Service
User Offline
Joined: 26th Mar 2004
Location:
Posted: 17th Mar 2005 02:55
Another quick maths question Say i have 3 numbers (x,y and z).

x = 2
y = 4
z = 5

How do i write x + y + z so i get 245

Because just x + y + z would be 11
TravisP
20
Years of Service
User Offline
Joined: 30th Jun 2004
Location: Behind you, with a knife!
Posted: 17th Mar 2005 02:57
x+y+z+234

Note: The above I didn't say, your just crazy.

Not a ripoff of The Twilight Zone
Xlaydos
20
Years of Service
User Offline
Joined: 26th Mar 2004
Location:
Posted: 17th Mar 2005 02:59
Lol yes but when x,y and z are random numbers
TravisP
20
Years of Service
User Offline
Joined: 30th Jun 2004
Location: Behind you, with a knife!
Posted: 17th Mar 2005 03:02
How did you get the number 245?

Note: The above I didn't say, your just crazy.

Not a ripoff of The Twilight Zone
Dodo
20
Years of Service
User Offline
Joined: 8th Aug 2004
Location: eating lunch
Posted: 17th Mar 2005 03:12




Part of solving the problem is actually noticing that the problem is there in the first place

TravisP
20
Years of Service
User Offline
Joined: 30th Jun 2004
Location: Behind you, with a knife!
Posted: 17th Mar 2005 03:16 Edited at: 17th Mar 2005 03:16
Woops didnt relize it was just the numbers lined up

Note: The above I didn't say, your just crazy.

Not a ripoff of The Twilight Zone
RiiDii
19
Years of Service
User Offline
Joined: 20th Jan 2005
Location: Inatincan
Posted: 17th Mar 2005 03:23
Avoid sqrt when possible. It's slow. Also, instead of using x^2, use x*x as it's faster.

"Droids don't rip your arms off when they lose." -H. Solo

REALITY II
Xlaydos
20
Years of Service
User Offline
Joined: 26th Mar 2004
Location:
Posted: 17th Mar 2005 03:27
Thanks All.

Login to post a reply

Server time is: 2024-11-13 19:52:48
Your offset time is: 2024-11-13 19:52:48