skipped-periodic-values

Given a point and a distance, determine how many periodic values were skipped.

Usage no npm install needed!

<script type="module">
  import skippedPeriodicValues from 'https://cdn.skypack.dev/skipped-periodic-values';
</script>

README

skipped-periodic-values.js

Travis build status Code Climate Test Coverage Dependency Status devDependency Status

Given a distance that ignores a periodic value, determine how many periodic values were skipped.

Terminology

The members of a periodic function's output are the "values." A single member is a "value."

The distance that the function repeats itself along is the "period."

API

skippedPeriodicValues(start, distance, value, period)

Find the number of values skipped across "distance."