Jump to content

Formula for experience


mario_sunny

Recommended Posts

Hi, I was wondering just out of curiousity if anyone had the formula to determine how much exp you would need for the next level. For example, to get level 2 you need 83 exp, level 3 176 exp(I think).

dangsig.png

By popular demand, this signature is back- however I currently do not have a blog up at the moment and if I did I wouldn't update it. Sorry, the sig links to nowhere :( .

Link to comment
Share on other sites

That site gives formula but I think you can rewrite it to something 'easier'.

 

 

 

 

 

 

 

It should be an exponential function (don't know if you call it this way in english tough) like:

 

 

 

 

 

 

 

Xp = B* X^Y

 

 

 

 

 

 

 

If you got a good grpahic calculator, like a TI-84, you can put all of the numbers (level and xp) in a list and then enter a certain command (for TI-84: RegExp if I remember correctly) and it will give you the exact formula 8-)

Th3_C4bb4g3.png

Th3_C4bb4g3.png

Th3_C4bb4g3.png

- Back to casual f2p scaping due to limited time (university and girlfriend <3:) -

Link to comment
Share on other sites

Here's the code for different programing languages:

 

 

 

Visual Basic:

 

 

 

Public Function experience(ByVal lvl As Integer)

 

 

 

Dim a As Long

 

 

 

Dim x As Integer

 

 

 

For x = 1 To lvl

 

 

 

a = a + Int(x + 300 * (2 ^ (x / 7)))

 

 

 

Next x

 

 

 

experience = roundDown(a / 4)

 

 

 

End Function

 

 

 

 

 

 

 

PHP:

 

 

 

<?php

 

 

 

 

 

 

 

function experience($L) {

 

 

 

$a=0;

 

 

 

for($x=1; $x<$L; $x++) {

 

 

 

$a += floor($x+300*pow(2, ($x/7)));

 

 

 

}

 

 

 

return floor($a/4);

 

 

 

}

 

 

 

 

 

 

 

for($L=1;$L<100;$L++) {

 

 

 

echo 'Level '.$L.': '.experience($L).'

 

';

 

 

 

}

 

 

 

?>

 

 

 

 

 

 

 

Microsoft Excel:

 

 

 

Cell A1: 1

 

 

 

Cell B1 formula: =ROUND.DOWN(A1+300*POWER(2;A1/7);0)/4

 

 

 

Cell A2: 2

 

 

 

Cell B2 formula: =B1+ROUND.DOWN(A2+300*POWER(2;A2/7);0)/4

 

 

 

 

 

 

 

Fill the rest of the first column with numbers 3, 4, ...

 

 

 

Copy B2 field formula down.

 

 

 

 

 

 

 

Javascript:

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Python:

 

 

 

points = 0

 

 

 

for level in range(1,100):

 

 

 

diff = int(level + 300 * math.pow(2, float(level)/7) )

 

 

 

points += diff

 

 

 

str = "Level %d = %d" % (level + 1, points / 4)

 

 

 

print str

 

 

 

 

 

 

 

Hope this helps

 

 

 

 

 

 

 

-Deviledegg24

DeviledEgg24.png

Drops: 1x Draconic Visage, 56x Abyssal Whip, 5x Demon Head, D Drops: 37, Barrows Drops: 43, DK Drops: 29

GWD drops: 14,000x Bars, 1x Armadyl Hilt, 2x Armadyl Skirt, 4x Sara Sword, 1x Saradomin Hilt, 8x Bandos Hilt, 8x Bandos Platebody, 9x Bandos Tassets, 4x Bandos Boots, 43x Godsword Shard, 82x Dragon Boots

Dry streak records: Saradomin 412 kills Bandos 988 kills Spirit Mages 633 kills - Slayer Sucks

Link to comment
Share on other sites

I am not a man of math, could you please explain what the hell all those numbers mean? I don't understand why you can't just give me the formula and all the "x ="'s.

dangsig.png

By popular demand, this signature is back- however I currently do not have a blog up at the moment and if I did I wouldn't update it. Sorry, the sig links to nowhere :( .

Link to comment
Share on other sites

Wait, you want a formula, but you don't want any x's and = signs???

 

 

 

 

 

 

 

btw it's I believe not a very easy function... maybe it's a recursive function, but with Origin 7.5 (a profesional program I need to use at university) when I try to draw a curve through the values, I get the best results with an power function (y = a*b^(cx + d) + e) - however the result still has a pretty high standard deviation, while it should be perfect (S should be 0).

 

 

 

 

 

 

 

I also tried some simple linearization tricks, but they all don't work..

 

 

 

 

 

 

 

So my conclusion is that it's a recursive function - and since I'm not a math student (physics) I don't really know how to get such a function... sorry

First they came to fishing

and I didn't speak out because I wasn't fishing

 

Then they came to the yews

and I didn't speak out because I didn't cut yews

 

Then they came for the ores

and I didn't speak out because I didn't collect ores

 

Then they came for me

and there was no one left to speak out for me.

Link to comment
Share on other sites

I am not a man of math, could you please explain what the hell all those numbers mean? I don't understand why you can't just give me the formula and all the "x ="'s.

 

 

 

It's not that simple; there's no "easy" forumla.

DeviledEgg24.png

Drops: 1x Draconic Visage, 56x Abyssal Whip, 5x Demon Head, D Drops: 37, Barrows Drops: 43, DK Drops: 29

GWD drops: 14,000x Bars, 1x Armadyl Hilt, 2x Armadyl Skirt, 4x Sara Sword, 1x Saradomin Hilt, 8x Bandos Hilt, 8x Bandos Platebody, 9x Bandos Tassets, 4x Bandos Boots, 43x Godsword Shard, 82x Dragon Boots

Dry streak records: Saradomin 412 kills Bandos 988 kills Spirit Mages 633 kills - Slayer Sucks

Link to comment
Share on other sites

Wait, you want a formula, but you don't want any x's and = signs???

 

 

 

 

 

 

 

btw it's I believe not a very easy function... maybe it's a recursive function, but with Origin 7.5 (a profesional program I need to use at university) when I try to draw a curve through the values, I get the best results with an power function (y = a*b^(cx + d) + e) - however the result still has a pretty high standard deviation, while it should be perfect (S should be 0).

 

 

 

 

 

 

 

I also tried some simple linearization tricks, but they all don't work..

 

 

 

 

 

 

 

So my conclusion is that it's a recursive function - and since I'm not a math student (physics) I don't really know how to get such a function... sorry

 

 

 

 

 

 

 

I never said I didn't want that, in fact I said I did want that. :|

 

 

 

 

 

 

 

Nevermind the formula seems to be very confusing. I'm not curious anymore...

dangsig.png

By popular demand, this signature is back- however I currently do not have a blog up at the moment and if I did I wouldn't update it. Sorry, the sig links to nowhere :( .

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.