Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Interpolator

A small, dependency-light interpolation calculator that runs entirely in the browser. It provides three modes plus persistent settings:

Simple Ratio

$$Y_{2} = \frac{X_{2} ⋅ Y_{1}}{X_{1}}$$

Linear

$$Y_{2} = \frac{(X_{2} − X_{1})(Y_{3} − Y_{1})}{(X_{3} − X_{1})} + Y_{1}$$

Bilinear

$$P = \frac{(X_{2} − X)(Y_{2} − Y)Q_{11} + (X − X_{1})(Y_{2} − Y)Q_{21} + (X_{2} − X)(Y − Y_{1})Q_{12} + (X − X_{1})(Y − Y_{1})Q_{22}}{(X_{2} − X_{1})(Y_{2} − Y_{1})}$$

Results recompute live as you type. Values, the active tab, and the "Show Division by Zero Error" preference persist in localStorage.

This is a static-web reimplementation of an earlier Windows Forms app of the same name.

Running

Open index.html in any modern browser — there is no build step. It is served live via GitHub Pages at https://zalgebar.github.io/interpolator/.

Numeric precision

Arithmetic uses decimal.js (base-10, 29 significant digits) so results match the original's .NET decimal behavior, including throwing on division by zero rather than producing Infinity/NaN.

License

MIT — see LICENSE. Bundled vendor/decimal.min.js is MIT © Michael Mclaughlin.

About

Interpolation calculator (simple, linear, bilinear)

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages