noc-book-2 icon indicating copy to clipboard operation
noc-book-2 copied to clipboard

relationship between mass and radius

Open shiffman opened this issue 5 years ago • 1 comments

Noting that in my examples I just use a multiplier to tie radius to mass.

    this.radius = mass * 8;

Another, perhaps more accurate, way to approach this would be to consider surface area as corresponding to mass which would involve taking the square root (area = πr²).

    this.radius = sqrt(mass) * 8;

This would need to be addressed in the text and examples.

shiffman avatar Feb 03 '20 23:02 shiffman

@shiffman - Oh yes, this is a great thing to update as it creates a better visual mapping to the size of the circles.

joeyklee avatar Feb 06 '20 20:02 joeyklee

I decided to add this as an exercise? Maybe it's too easy if I provide this hint?

Screen Shot 2023-02-11 at 3 03 23 PM

There is also a reference earlier in the chapter now.

Screen Shot 2023-02-11 at 3 04 24 PM

Leaving open for comment.

shiffman avatar Feb 11 '23 20:02 shiffman

I did another pass over this language will be published to the new website shortly! Closing!

shiffman avatar Jun 05 '23 01:06 shiffman