Jump to content

Advanced (?) Mathematic problem


Unknown_Warrior

Recommended Posts

I went through a lot of the algebra, recalling some old log rules. But, I keep hitting dead ends. Also, I think what s confusing people the most is that the word "formula" should be "function". He's asking for a function that:

 

f(x) = xp remaining

 

 

 

Where function f is how much xp remains for given xp (x).

 

 

 

Here's what I have so far:

 

 

 

ln(4y-x) - ln(300) = (x/7)(ln(2))

 

 

 

(I tested it by plugging in numbers from the original function, and it's correct)

 

 

 

All I need to do is separate the x and y in the first logarithm....Any suggestions?

acheron.jpg
Link to comment
Share on other sites

y = (x+300*2^(x/7))/4

 

 

 

To find x explicitly, you need the Lambert W function ( see http://en.wikipedia.org/wiki/Lambert%27s_W_function )

 

 

 

when y = x exp(x)

 

then x = W(y)

 

 

 

Your problem is an instance of the general equation

 

p^(a*x+B) = c*x+d

 

 

 

Specificaly:

 

y = (x+300*2^(x/7))/4

 

y = x/4+75*2^(x/7)

 

y/75 - x/300 = 2^(x/7)

 

 

 

thus c=-1/300 , d=y/75 , b=0 , a=1/7 , p=2

 

The wiki page I linked to above describes how to solve this kind of equation, the solution to your problem is

 

x = (-7*W(300/7*ln(2)*2^(4/7*y))+4*y*ln(2))/ln(2)

 

 

 

 

 

Unfortunately, Microsoft Excel does not contain an implementation of the Lambert W function. You can, however, approximate it to arbitrary accuracy using the Taylor series, also described in the wikipedia article I linked to.

"Noob" is an insult. "Noob" is overused. Be polite. Try to say "noob" less than once a day.

Thank you.

Link to comment
Share on other sites

y = (x+300*2^(x/7))/4

 

 

 

To find x explicitly, you need the Lambert W function ( see http://en.wikipedia.org/wiki/Lambert%27s_W_function )

 

 

 

when y = x exp(x)

 

then x = W(y)

 

 

 

Your problem is an instance of the general equation

 

p^(a*x+B) = c*x+d

 

 

 

Specificaly:

 

y = (x+300*2^(x/7))/4

 

y = x/4+75*2^(x/7)

 

y/75 - x/300 = 2^(x/7)

 

 

 

thus c=-1/300 , d=y/75 , b=0 , a=1/7 , p=2

 

The wiki page I linked to above describes how to solve this kind of equation, the solution to your problem is

 

x = (-7*W(300/7*ln(2)*2^(4/7*y))+4*y*ln(2))/ln(2)

 

 

 

 

 

Unfortunately, Microsoft Excel does not contain an implementation of the Lambert W function. You can, however, approximate it to arbitrary accuracy using the Taylor series, also described in the wikipedia article I linked to.

 

...what?

Join "DG Sweepers" Clan Chat for Dungeoneering Floors | Accepting all tipiters who are Willing to Learn |

Jelly.pngOccultEpicKeyer21.pngBladewing.png

Link to comment
Share on other sites

...what?

 

This is the solution:

 

x = (-7*W(300/7*ln(2)*2^(4/7*y))+4*y*ln(2))/ln(2)

 

where W is the Lambert W function.

 

that's it.

"Noob" is an insult. "Noob" is overused. Be polite. Try to say "noob" less than once a day.

Thank you.

Link to comment
Share on other sites

Don't worry guys, I solved it through a much easier method of just using VLOOKUP and copying an XP Table.

 

 

 

 

 

All I need now is an Excel function that can retrieve info directly from sites. If that even exists...

Unknown_Warrior.jpegIgGCP.png

Dragon Drops : 5 Dragon Medium Helmets, 3 Dragon Claws, 3 Dragon platelegs, 2 Dragon plateskirts, 2 Dragon Hatchets, 2 Dragon Spears, 7 pairs of Dragon Boots, 1 Dragon pickaxe, 10 Dragon defenders, 3 Dragon 2h swords, 1 Dragon armour Slice, 1 Dragon armour Lump, 1 Dragon chainbody, 1 Dragon kiteshield, 1 Dragon hasta, 1 Dragon ward, 25 Dragon knives pairs
The Warrior's Blog , Herblore Habitat - Efficient and profitable

[hide=Stats and logs]






The_Warrior.png
.:Adventurer's Log:.

[/hide]

Link to comment
Share on other sites

Bump for an Excel command that can extract data directly from sites.

 

 

 

Can anyone help?

Unknown_Warrior.jpegIgGCP.png

Dragon Drops : 5 Dragon Medium Helmets, 3 Dragon Claws, 3 Dragon platelegs, 2 Dragon plateskirts, 2 Dragon Hatchets, 2 Dragon Spears, 7 pairs of Dragon Boots, 1 Dragon pickaxe, 10 Dragon defenders, 3 Dragon 2h swords, 1 Dragon armour Slice, 1 Dragon armour Lump, 1 Dragon chainbody, 1 Dragon kiteshield, 1 Dragon hasta, 1 Dragon ward, 25 Dragon knives pairs
The Warrior's Blog , Herblore Habitat - Efficient and profitable

[hide=Stats and logs]






The_Warrior.png
.:Adventurer's Log:.

[/hide]

Link to comment
Share on other sites

y = (x+300*2^(x/7))/4

 

4y = (x+300*2^(x/7))

 

4y-x = 300*2^(x/7)

 

(4y-x)/300 = 2^(x/7)

 

log2 of [(4y-x)/300] = x/7

 

x = 7{log2 of [(4y-x)/300]}

 

*the {} must be there. Do not simplify the 7 into the log.

 

 

 

And no garuntee I did that right. I think it works but its been a summer and a bit since I did logarithims.

 

 

 

EDIT:

 

Don't worry guys, I solved it through a much easier method of just using VLOOKUP and copying an XP Table.

 

 

 

 

 

All I need now is an Excel function that can retrieve info directly from sites. If that even exists...

 

There are javascript or html funtions that can retrive that sort of data, but the best you could do would be a script that takes that data and gives an output in the same way as the tip.it calcs. Excel cannot activly look up info from the internet.

Link to comment
Share on other sites

If its excel you want, use this forumla:

 

 

 

Cell A1: 1

 

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

 

Cell B1: 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.

 

 

 

It's from RSDemon, but I have a similar one in Excel that works fine. Can't be bothered to go to it though :wall:

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

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.