You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

fermi

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fermi

Estimate the number of piano tuners in a city given the population.

1.0.2
latest
Source
npmnpm
Version published
Weekly downloads
0
-100%
Maintainers
1
Weekly downloads
 
Created
Source

fermi

Estimate the number of piano tuners in a city given the population.

Fermi_problem.

example

var fermi = require('fermi');
var n = fermi(5000000);
console.log(n);

methods

var fermi = require('fermi');

fermi(population, assumptions)

Return the estimated number of piano tuners in a city given the city population.

assumptions Optional assumptions for the estimate.

  • people_per_house average number of persons in each household. Default is 2.
  • houses_with_piano_percent number of households that have a piano that is tuned regularly as a percentage. Default is 5.0.
  • tuning_per_piano_per_year: average number of times per year a (regularly tuned) piano is tuned. Default is 1.
  • tuning_time_hours number of hours it takes a piano tuner to tune a piano, including travel time. Default is 2.
  • tuner_work_hours_per_day number of hours per day a tuner works. Default is 8.
  • tuner_work_days_per_week number of days a week a tuner works. Default is 5.
  • tuner_work_weeks_oer_year number of weeks a year a tuner works. Default is 50.

install

With npm do:

npm install fermi

license

MIT

Keywords

fermi

FAQs

Package last updated on 23 May 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts