Open sebcza opened 8 years ago
I would use algerba.js in my project. In first simple step I tired calculate formula for linear function.
var x1 = 1283; var x2 = 1434; var y1 = 496; var y2 = 698 var lineFunction = algebra.parse("(" + x2 + " - " + x1 + ") * (y - " + y1 + ") = (" + y2 + " - " + y1 + ") * (x-" + x1 + ")"); var y = lineFunction.solveFor("y"); console.log(y.toString());
Result in chrome:
151y - 74896 = 202x - 259166
Result in firefox:
151y - 1831464798748493/24414062500 = 2525000000000001/12500000000000x - 6327294921875003/24414062500
I tried to copy / paste your snippet into scratchpad in firefox, and executed on algebra.js.org. It gave me this result
scratchpad
202/151x - 184270/151
I'm using firefox v. 52.0 (64-bit)
I would use algerba.js in my project. In first simple step I tired calculate formula for linear function.
Result in chrome:
151y - 74896 = 202x - 259166
Result in firefox:
151y - 1831464798748493/24414062500 = 2525000000000001/12500000000000x - 6327294921875003/24414062500