.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

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #14  
Old July 23rd, 2002, 06:17 PM
DirectorTsaarx's Avatar

DirectorTsaarx DirectorTsaarx is offline
Major
 
Join Date: Dec 2000
Location: Northern Virginia, USA
Posts: 1,048
Thanks: 0
Thanked 0 Times in 0 Posts
DirectorTsaarx is on a distinguished road
Default Re: Tech Progression Formula?

Quote:
Originally posted by Baron Munchausen:
Those formulas were posted by PvK, and he was just describing what he saw without thinking very much about the underlying math. I don't think PvK is a mathematician or even a programmer. I think the new formulas posted in this thread are cleaner and probably closer to the truth of what's going on in the game code. Just goes to show you that there are many ways to describe the same thing.
Well, DavidG's formulas are mathematically equivalent to Andrés' formulas (yeah, I'm a geek; I did a quick arithmetic proof). DavidG's formulas are just the recursive form (i.e., the total cost is the previous level's cost plus the difference calculated from his formulae), while Andrés' formulas are the absolute form (i.e., you just need to know the level cost and the level being researched to find the total cost).

For those who are interested, the proof involves taking the "absolute" formula for level "L" and subtracting the formula for level "L-1", then reducing algebraically to come up with the difference between each level.

Full proof follows:

Low tech cost: absolute formula is LC*L

LC*L - LC*(L-1) = LC*L - LC*L + LC = LC

Therefore, the difference in cost for each level is equal to the level cost.

-----------------------------------
Medium tech cost: absolute formula is LC*(L²/2)

LC*(L²/2) - LC*[(L-1)²/2] = LC*[L²/2 - (L²/2 - 2L/2 + 1/2)] = LC*[2L/2 - 1/2] = LC*(L - 0.5)

Therefore, the difference in cost for each level is equal to the level cost times "Level - 0.5"

-----------------------------------
High tech cost: absolute formula is LC*(L²)

LC*(L²) - LC*(L-1)² = LC*[L² - (L² - 2*L + 1)] = LC*(2L - 1) = 2*LC*(L - 1/2)

Therefore, the difference in cost for each level is equal to the level cost times 2, times "Level - 0.5"

[ July 23, 2002, 17:18: Message edited by: DirectorTsaarx ]
__________________
L++ Se+++ GdY $++ Fr C+++ Csc Sf Ai AuO M+ MpTM S Ss RRSHP+ Pw- Fq->Fq+ Nd+++ Rp G++ Mm++ Bb---
Reply With Quote
 

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 02:47 AM.


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