.com.unity Forums
  The Official e-Store of Shrapnel Games

This Month's Specials

Raging Tiger- Save $9.00
winSPMBT: Main Battle Tank- Save $5.00

   







Go Back   .com.unity Forums > Shrapnel Community > Space Empires: IV & V

Reply
 
Thread Tools Display Modes
  #31  
Old September 21st, 2004, 10:58 PM
narf poit chez BOOM's Avatar

narf poit chez BOOM narf poit chez BOOM is offline
Shrapnel Fanatic
 
Join Date: Mar 2003
Location: CHEESE!
Posts: 10,009
Thanks: 0
Thanked 7 Times in 1 Post
narf poit chez BOOM is on a distinguished road
Default Re: OT: Interesting math problem...

Thanks Jack. But, still not an equation.

Kamog, what?
__________________
If I only could remember half the things I'd forgot, that would be a lot of stuff, I think - I don't know; I forgot!
A* E* Se! Gd! $-- C-^- Ai** M-- S? Ss---- RA Pw? Fq Bb++@ Tcp? L++++
Some of my webcomics. I've got 400+ webcomics at Last count, some dead.
Sig updated to remove non-working links.
Reply With Quote
  #32  
Old September 22nd, 2004, 12:02 AM
Instar's Avatar

Instar Instar is offline
Major
 
Join Date: Aug 2000
Posts: 1,246
Thanks: 0
Thanked 0 Times in 0 Posts
Instar is on a distinguished road
Default Re: OT: Interesting math problem...

Its a system of equations, linear algebra might get it done
__________________
When a cat is dropped, it always lands on its feet, and when toast is dropped, it always lands with the buttered side facing down. I propose to strap buttered toast to the back of a cat. The two will hover, spinning inches above the ground. With a giant buttered cat array, a high-speed monorail could easily link New York with Chicago.
Reply With Quote
  #33  
Old September 22nd, 2004, 03:58 AM
Will's Avatar

Will Will is offline
Lieutenant Colonel
 
Join Date: Mar 2001
Location: Emeryville, CA
Posts: 1,412
Thanks: 0
Thanked 0 Times in 0 Posts
Will is on a distinguished road
Default Re: OT: Interesting math problem...

Narf, the equation means you take the constant e (2.71828183...) to the power of one half times the natural logarithm of x, or log base e of x. It doesn't have to be e though, you can get away with something like 10. So, 10^(0.5 * log(x)). It works because of the laws of logarithms, since a^b=c is equivalent to log(a)(c)=b. Then, it is simple to reconstruct as a^(log(a)(c))=c. Square root is simply a number to the one half power, so 10^(0.5 * log(x)) is the sqrt(x).

Either way, you're left with pretty much imprecise methods. I remember they briefly showed how to do it in high school, and that's probably an algorithm like the one Fyron pointed to, and it would be written in an equation as the Riemann sum of varying powers of 10, which would be a very nasty looking thing. Jack's method is easier to write, so I would go with that one. To write it in terms of an equation for square root, it would be something like:

lim(x->&#8734 R(x,N) = sqrt(N)

--edit: ^ that up there is supposed to be the infinity symbol.
__________________
GEEK CODE V.3.12: GCS/E d-- s: a-- C++ US+ P+ L++ E--- W+++ N+ !o? K- w-- !O M++ V? PS+ PE Y+ PGP t- 5++ X R !tv-- b+++ DI++ D+ G+ e+++ h !r*-- y?
SE4 CODE: A-- Se+++* GdY $?/++ Fr! C++* Css Sf Ai Au- M+ MpN S Ss- RV Pw- Fq-- Nd Rp+ G- Mm++ Bb@ Tcp- L+
Reply With Quote
  #34  
Old September 22nd, 2004, 08:37 AM
David E. Gervais's Avatar

David E. Gervais David E. Gervais is offline
General
 
Join Date: May 2002
Location: Canada
Posts: 3,227
Thanks: 7
Thanked 44 Times in 28 Posts
David E. Gervais is on a distinguished road
Default Re: OT: Interesting math problem...

Wow, math games,... What's the square root of PI?

Cheers!
Reply With Quote
  #35  
Old September 22nd, 2004, 11:03 AM
geoschmo's Avatar

geoschmo geoschmo is offline
National Security Advisor
 
Join Date: Jan 2001
Location: Ohio
Posts: 8,450
Thanks: 0
Thanked 4 Times in 1 Post
geoschmo is on a distinguished road
Default Re: OT: Interesting math problem...

At my high school they taught us a way to calculate square roots. It wasn't a simple equation. More of a process that resembled long division. I can't remember it anymore though. It may have been a form of this rod thing Fyron linked to just by a different name. But it didn't look exactly like that as I recall.
__________________
I used to be somebody but now I am somebody else
Who I'll be tomorrow is anybody's guess
Reply With Quote
  #36  
Old September 22nd, 2004, 11:05 AM
Timstone's Avatar

Timstone Timstone is offline
Brigadier General
 
Join Date: Jun 2002
Location: Kleigat Pampercity
Posts: 1,804
Thanks: 5
Thanked 2 Times in 2 Posts
Timstone is on a distinguished road
Default Re: OT: Interesting math problem...

Quote:
douglas said:
Quote:
Suicide Junkie said:
Here is a tough one:
Fill in the long division using the blanks and the given numbers.
Code:

_ _ 8 _
_______________
_ _ _ | _ _ _ _ _ _ 5
_ _ _ _
========
_ _ _ _
_ _ _
========
_ _ _ _
_ _ _
========
_ _ _ _
_ _ _ _
========
0


Took me about 5 minutes
Code:

9 8 8 9
_______________
1 1 5 | 1 1 3 7 2 3 5
1 0 3 5
========
1 0 2 2
9 2 0
========
1 0 2 3
9 2 0
========
1 0 3 5
1 0 3 5
========
0



Okay, I'm an mechanical engineer and I really don't understand this sollution. How can 1023 minus 920 be 1035??????
Downright stupid if you ask me. But maybe I don't understand how it is put down. Please enlighten me.
__________________
I can only please one person per day, and today is not your day. And tomorrow isn't looking too good either.
Gabriella in Blood 2

Men may control the free world, but women control the boobs.
Brent in Plaver vs. Player
Reply With Quote
  #37  
Old September 22nd, 2004, 11:10 AM
geoschmo's Avatar

geoschmo geoschmo is offline
National Security Advisor
 
Join Date: Jan 2001
Location: Ohio
Posts: 8,450
Thanks: 0
Thanked 4 Times in 1 Post
geoschmo is on a distinguished road
Default Re: OT: Interesting math problem...

Quote:
Will said:
... there is also a sort of mathematical intuition there, that there already is a trivial solution for zeros, and a non-trivial solution most likely will not have the zeros. But, overall, I was just looking to solve it quickly, elegantly, and I determined that rather than proving V != 0, and doing most of the problem twice, I would just ignore that possibility, and go with the more "interesting" one. And, usually, that works
Ok. I guess it is some assumption grounded in years of number theory and probablility or something. Lacking that I went more towards the common sense, brute force method of substition. It was not inherantly obvious to me that because the trivial answer had zeros the non-trivial answer could not. I also don't see how you could make the assumption without proving or disproving posibilities that there isn't more then one correct answer.
__________________
I used to be somebody but now I am somebody else
Who I'll be tomorrow is anybody's guess
Reply With Quote
  #38  
Old September 22nd, 2004, 11:13 AM
geoschmo's Avatar

geoschmo geoschmo is offline
National Security Advisor
 
Join Date: Jan 2001
Location: Ohio
Posts: 8,450
Thanks: 0
Thanked 4 Times in 1 Post
geoschmo is on a distinguished road
Default Re: OT: Interesting math problem...

Quote:
Timstone said:
Okay, I'm an mechanical engineer and I really don't understand this sollution. How can 1023 minus 920 be 1035??????
Downright stupid if you ask me. But maybe I don't understand how it is put down. Please enlighten me.
Timstone, you've been using computers so long you've forgotten how to do long division.

1023 minus 920 is not 1035, it's 103. The 5 is brought down from the original number so you can do the next step in the process.
__________________
I used to be somebody but now I am somebody else
Who I'll be tomorrow is anybody's guess
Reply With Quote
  #39  
Old September 22nd, 2004, 01:00 PM
Timstone's Avatar

Timstone Timstone is offline
Brigadier General
 
Join Date: Jun 2002
Location: Kleigat Pampercity
Posts: 1,804
Thanks: 5
Thanked 2 Times in 2 Posts
Timstone is on a distinguished road
Default Re: OT: Interesting math problem...

Geo:
Yup, I discovered that too. But still the whole working of this sum eludes me. I can't grasp it. I must say I have only taken a quick look at it. I don't feel much for a thorough study of the phenomena.
__________________
I can only please one person per day, and today is not your day. And tomorrow isn't looking too good either.
Gabriella in Blood 2

Men may control the free world, but women control the boobs.
Brent in Plaver vs. Player
Reply With Quote
  #40  
Old September 22nd, 2004, 02:06 PM
narf poit chez BOOM's Avatar

narf poit chez BOOM narf poit chez BOOM is offline
Shrapnel Fanatic
 
Join Date: Mar 2003
Location: CHEESE!
Posts: 10,009
Thanks: 0
Thanked 7 Times in 1 Post
narf poit chez BOOM is on a distinguished road
Default Re: OT: Interesting math problem...

Quote:
Will said:
Narf, the equation means you take the constant e (2.71828183...) to the power of one half times the natural logarithm of x, or log base e of x. It doesn't have to be e though, you can get away with something like 10. So, 10^(0.5 * log(x)). It works because of the laws of logarithms, since a^b=c is equivalent to log(a)(c)=b. Then, it is simple to reconstruct as a^(log(a)(c))=c. Square root is simply a number to the one half power, so 10^(0.5 * log(x)) is the sqrt(x).

Either way, you're left with pretty much imprecise methods. I remember they briefly showed how to do it in high school, and that's probably an algorithm like the one Fyron pointed to, and it would be written in an equation as the Riemann sum of varying powers of 10, which would be a very nasty looking thing. Jack's method is easier to write, so I would go with that one. To write it in terms of an equation for square root, it would be something like:

lim(x->&#8734 R(x,N) = sqrt(N)

--edit: ^ that up there is supposed to be the infinity symbol.
Ok, sure. I'll pretend I understand all of that, and you can have a nice, shiney medal.

/me gives Will a nice, shiney medal.
__________________
If I only could remember half the things I'd forgot, that would be a lot of stuff, I think - I don't know; I forgot!
A* E* Se! Gd! $-- C-^- Ai** M-- S? Ss---- RA Pw? Fq Bb++@ Tcp? L++++
Some of my webcomics. I've got 400+ webcomics at Last count, some dead.
Sig updated to remove non-working links.
Reply With Quote
Reply

Bookmarks


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump


All times are GMT -4. The time now is 05:43 PM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©1999 - 2025, Shrapnel Games, Inc. - All Rights Reserved.