Jump to content

  • Log In with Google      Sign In   
  • Create Account


Member Since 07 Nov 2010
Offline Last Active Today, 11:11 AM

Posts I've Made

In Topic: Finding the current average of an indefinitely increasing sequence

28 October 2015 - 07:46 PM

Another really simple way to do it is to do

newAverage = prevAverage * (i - 1) / i + newValue / i;

, where i starts at 1 and increments after every time you want to add something to the running average. Granted, this is only as good as the floating point precision you're using, but then again, that could be said about almost everything :P

In Topic: What's going on with the hamsters?

15 October 2015 - 11:19 AM


In Topic: Smoothed Particle Hydrodynamics

23 September 2015 - 10:48 AM

That might be something I'm confused about. From what I understand, the Navier-Stokes equation takes the form

\( \rho(\frac{Du}{Dt}) = F_{pressure} + F_{grav} + F_{viscosity} \) ,

which would imply that the gravity force IS dependent on the density of a particle, unless the density there is talking about the rest density. If that's the case, then I'm very confused.


And I'll look at those links, thanks!

In Topic: Pixel art is too mainstream (also TypeScript is kinda nice)

17 September 2015 - 09:06 AM

11,240. Those roads get really tight. Definitely not OSHA certified :D


My high score in the Chrome "webpage unavailable" dino-jump game, however, is 25,372.

In Topic: What level mage are you?

28 August 2015 - 11:28 PM

Level 5 totodile cause 2nd gen=best gen woot! -- i mean, uh,


Level 8 procrasti-caster!