Jump to content

Math Formula. Hope your good...


Mandelore

Recommended Posts

Below is the first formula I'm trying to figure out, or find one that outputs something very similar. The numbers below are the answers.

 

2

3

3

4

5

6

7

9

10

12

15

18

21

26

31

37

44

53

64

77

 

So if anyone can find a formula that will get these numbers based on one changing variable then that would be greatly appreciated!

Link to comment
Share on other sites

the scripting is for a game a friend is making, i know how to do this using an array, but.

 

"A formula will work faster because it would just be like

lvl x lvl / 100 = ??

 

If I used an array, then I would be storing solid, unchangeable numbers. Array(1,3,3,4,5,6,7,9,10,12) etc...

 

All buildings provide different Culture Points, so I kinda need the formula to work for one, so it will work for all by modifying maybe a number."

 

that was his response when i suggested it. this is the only info i have currently just trying to get more, but if its possible to work out with what Ive given you and someone can help ill be forever grateful

Link to comment
Share on other sites

Well unfortunately it's a bit difficult to come up with a formula for an input set that returns an output set without the input set as compared to the output set having some kind of trend.

 

 

Give me a few minutes (hopefully I can find my good calculator somewhere around here), and I'll try to find something.

 

 

You might have to just hard code the levels.

Link to comment
Share on other sites

Well, I can't find my calculator and don't have the time to do it by hand....  So....  Perhaps there's an easier way to do it, or if I have enough spare time sometime I might try to do it (never done exponential regression by hand before....  Woo for challenges!)

Link to comment
Share on other sites

Equation :

Y = 1.8850458004 * 1.20483851017^X

 

Goodness of fit (R2) = 0.999672213698

StdDev of Residuals = 0.557331474804

Covariance= 113.225

Correlation= 0.999022624894

SS Regression= 17051.652204

SS Residuals= 5.59113071052

DF Residuals= 18

F= 54895.8261866

 

Intersect = 1.8850458004

Intersect SE = 0.258898001508

Slope = 1.20483851017

Slope SE = 0.0216123875926

 

Link to comment
Share on other sites

oops... plotted it the wrong way...

 

a = 1.8850458

b = 0.18534554

[tex]y = a e^{b x}[/tex]

 

xdece9.png

 

 

//edit...

 

lol just realized, it was a carat, not a multiply :P.....

Mark Baker is right... but one normally would use [tex]e[/tex]

 

 

What program is that screen shot from?

Link to comment
Share on other sites

Mark Baker is right... but one normally would use [tex]e[/tex]

 

Not necessarily. From a purely mathematical standpoint there is no difference.

 

First of all, I get [tex]f(x)=1.88504580039545 \cdot e^{0.186345541507008605x}[/tex] using Maple.

 

We know that [tex]\left( x^a \right)^b = x^{ab}[/tex]. This means that [tex]e^{0.186345541507008605x} = \left(e^{0.186345541507008605}\right)^x[/tex]. So our base is [tex]e^{0.186345541507008605}=1.20483851017[/tex], which is what Mark got as well.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.