Menu
News
All News
Dungeons & Dragons
Level Up: Advanced 5th Edition
Pathfinder
Starfinder
Warhammer
2d20 System
Year Zero Engine
Industry News
Reviews
Dragon Reflections
White Dwarf Reflections
Columns
Weekly Digests
Weekly News Digest
Freebies, Sales & Bundles
RPG Print News
RPG Crowdfunding News
Game Content
ENterplanetary DimENsions
Mythological Figures
Opinion
Worlds of Design
Peregrine's Nest
RPG Evolution
Other Columns
From the Freelancing Frontline
Monster ENcyclopedia
WotC/TSR Alumni Look Back
4 Hours w/RSD (Ryan Dancey)
The Road to 3E (Jonathan Tweet)
Greenwood's Realms (Ed Greenwood)
Drawmij's TSR (Jim Ward)
Community
Forums & Topics
Forum List
Latest Posts
Forum list
*Dungeons & Dragons
Level Up: Advanced 5th Edition
D&D Older Editions
*TTRPGs General
*Pathfinder & Starfinder
EN Publishing
*Geek Talk & Media
Search forums
Chat/Discord
Resources
Wiki
Pages
Latest activity
Media
New media
New comments
Search media
Downloads
Latest reviews
Search resources
EN Publishing
Store
EN5ider
Adventures in ZEITGEIST
Awfully Cheerful Engine
What's OLD is NEW
Judge Dredd & The Worlds Of 2000AD
War of the Burning Sky
Level Up: Advanced 5E
Events & Releases
Upcoming Events
Private Events
Featured Events
Socials!
EN Publishing
Twitter
BlueSky
Facebook
Instagram
EN World
BlueSky
YouTube
Facebook
Twitter
Twitch
Podcast
Features
Top 5 RPGs Compiled Charts 2004-Present
Adventure Game Industry Market Research Summary (RPGs) V1.0
Ryan Dancey: Acquiring TSR
Q&A With Gary Gygax
D&D Rules FAQs
TSR, WotC, & Paizo: A Comparative History
D&D Pronunciation Guide
Million Dollar TTRPG Kickstarters
Tabletop RPG Podcast Hall of Fame
Eric Noah's Unofficial D&D 3rd Edition News
D&D in the Mainstream
D&D & RPG History
About Morrus
Log in
Register
What's new
Search
Search
Search titles only
By:
Forums & Topics
Forum List
Latest Posts
Forum list
*Dungeons & Dragons
Level Up: Advanced 5th Edition
D&D Older Editions
*TTRPGs General
*Pathfinder & Starfinder
EN Publishing
*Geek Talk & Media
Search forums
Chat/Discord
Menu
Log in
Register
Install the app
Install
Community
General Tabletop Discussion
*Dungeons & Dragons
D&D Older Editions
v4: Challenge Ratings pdf (3.5 compatible)
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="CRGreathouse" data-source="post: 1478311" data-attributes="member: 474"><p>OK, let's start. I'm taking a fairly simple formula, as far as yours go, and making some kind of sense of it. This is the formula in cell D8.</p><p></p><p>=1+4*(LOG((2^(TRUNC(LOG(D7,2)))),2))+TRUNC((((D7/(2^(TRUNC(LOG(D7,2)))))-1)*4))</p><p></p><p>First, there are lots of extra parens in there. This makes me sad, since it's harder to read. (Also, in a fit of pique, I changed TRUNC to INT -- they work the same if you don't use the optional argument of TRUNC.)</p><p></p><p>=1+4*(LOG(2^(Int(LOG(D7,2))),2))+Int(((D7/(2^(Int(LOG(D7,2)))))-1)*4)</p><p></p><p>Next, there is no reason to take the (base 2) log of a power (of 2).</p><p></p><p>=1+4*(Int(LOG(D7,2)))+Int(((D7/(2^(Int(LOG(D7,2)))))-1)*4)</p><p></p><p>Distributing for reading ease:</p><p></p><p>=1+4*(Int(LOG(D7,2)))+Int(4*(D7/(2^(Int(LOG(D7,2)))))-4)</p><p></p><p>Simplifying, since Int (blah - 4) = Int (blah) - 4:</p><p></p><p>=4*(Int(LOG(D7,2)))+Int(4*(D7/(2^(Int(LOG(D7,2))))))-3</p><p></p><p>Now it's at least possible to figure out where this is going. The first term is pretty clear, but the second seems odd... with internal rounding, it's susceptable to unusual results from numbers with large round-off. While this may make sense when making a formula from a chart, there's no reason to come up with a formula that rigidly follows the space constraints on the chart.</p><p></p><p>Note that this step changes the value by removing internal rounding. Without this step, the values will presumably follow the chart... but the chart rounds, and we don't like that in Excel. Plus, this will make everything look neater.</p><p></p><p>=4*(Int(LOG(D7,2)))+Int(4*(D7/(2^(LOG(D7,2)))))-3</p><p></p><p>With that done, there's another log of a power to remove:</p><p></p><p>=4*(Int(LOG(D7,2)))+Int(4*(D7/D7))-3</p><p></p><p>Obvious simplification then follows.</p><p></p><p>=4*(Int(LOG(D7,2)))+1</p><p></p><p>This is much better. Of course, we can go one step beyond -- there's no reason to round until the end:</p><p></p><p>=Int(4*LOG(D7,2))+1</p><p></p><p>This produces the exact same results from 1-22, and similar results (always within 1) outside that range.</p></blockquote><p></p>
[QUOTE="CRGreathouse, post: 1478311, member: 474"] OK, let's start. I'm taking a fairly simple formula, as far as yours go, and making some kind of sense of it. This is the formula in cell D8. =1+4*(LOG((2^(TRUNC(LOG(D7,2)))),2))+TRUNC((((D7/(2^(TRUNC(LOG(D7,2)))))-1)*4)) First, there are lots of extra parens in there. This makes me sad, since it's harder to read. (Also, in a fit of pique, I changed TRUNC to INT -- they work the same if you don't use the optional argument of TRUNC.) =1+4*(LOG(2^(Int(LOG(D7,2))),2))+Int(((D7/(2^(Int(LOG(D7,2)))))-1)*4) Next, there is no reason to take the (base 2) log of a power (of 2). =1+4*(Int(LOG(D7,2)))+Int(((D7/(2^(Int(LOG(D7,2)))))-1)*4) Distributing for reading ease: =1+4*(Int(LOG(D7,2)))+Int(4*(D7/(2^(Int(LOG(D7,2)))))-4) Simplifying, since Int (blah - 4) = Int (blah) - 4: =4*(Int(LOG(D7,2)))+Int(4*(D7/(2^(Int(LOG(D7,2))))))-3 Now it's at least possible to figure out where this is going. The first term is pretty clear, but the second seems odd... with internal rounding, it's susceptable to unusual results from numbers with large round-off. While this may make sense when making a formula from a chart, there's no reason to come up with a formula that rigidly follows the space constraints on the chart. Note that this step changes the value by removing internal rounding. Without this step, the values will presumably follow the chart... but the chart rounds, and we don't like that in Excel. Plus, this will make everything look neater. =4*(Int(LOG(D7,2)))+Int(4*(D7/(2^(LOG(D7,2)))))-3 With that done, there's another log of a power to remove: =4*(Int(LOG(D7,2)))+Int(4*(D7/D7))-3 Obvious simplification then follows. =4*(Int(LOG(D7,2)))+1 This is much better. Of course, we can go one step beyond -- there's no reason to round until the end: =Int(4*LOG(D7,2))+1 This produces the exact same results from 1-22, and similar results (always within 1) outside that range. [/QUOTE]
Insert quotes…
Verification
Post reply
Community
General Tabletop Discussion
*Dungeons & Dragons
D&D Older Editions
v4: Challenge Ratings pdf (3.5 compatible)
Top