Clone and edit this document
Runkit
Runkit
home page
user forum
new notebook
clone notebook
download notebook
support & documentation
log in
sign up
new notebook
help & feedback
clone this notebook
download this notebook
Sign In
Sign Up
linear-converter-to-go
node v0.12.18
version:
5.0.0
endpoint
share
tweet
var lc = require('linear-converter-to-go'); var temp = lc.PRESETS.temperature.conversions; var cToF = lc.conversion(temp, 'celsius', 'fahrenheit'); +lc.convert(cToF, 25).toFixed(2);
// f(x) = 3x + 1 lc.convert([[0, 1], [1, 4]], 5);
+lc.convert(lc.invertConversion(cToF), 77).toFixed(2);
lc.composeConversions([[0, 1], [0, 3]], [[0, 1], [1, 2]]);
lc.equivalentConversions( [[0, 10], [10, 20]], [[430245.1, -44.5], [430255.1, -34.5]] );
lc.equivalentConversions( [[0, 1], [0, 2]], [[0, 1], [0, 3]] );
lc.getCoefficientA([[0, 1], [1, 4]]);
lc.getCoefficientB([[0, 1], [1, 4]]);
Loading…
no comments
sign in
to comment