Skip to content

Instantly share code, notes, and snippets.

@PatheticMustan
Created December 8, 2023 21:32
Show Gist options
  • Save PatheticMustan/4e2bf2b4d16c298fbdcaf8e25c20b910 to your computer and use it in GitHub Desktop.
Save PatheticMustan/4e2bf2b4d16c298fbdcaf8e25c20b910 to your computer and use it in GitHub Desktop.
just some quick scratchpad calculations
const times = [0.01127,0.01199,0.01197,0.00957,0.01198,0.01104,0.01098,0.01202,0.01159,0.01206]
const velocity = times.map(t => 1.536*2/t);
const meanVelocity = velocity.reduce((a,b) => a+b, 0) / 10;
const stdDev = Math.sqrt(velocity.map(v => (v - meanVelocity)**2 / 10).reduce((a,b) => a+b, 0));
const stdErr = stdDev / Math.sqrt(10);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment