Skip to content
This repository has been archived by the owner on May 23, 2019. It is now read-only.

BUG Firefox gives me bad results. #58

Open
sebcza opened this issue Jun 15, 2016 · 1 comment
Open

BUG Firefox gives me bad results. #58

sebcza opened this issue Jun 15, 2016 · 1 comment
Assignees
Labels

Comments

@sebcza
Copy link

sebcza commented Jun 15, 2016

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

@nicolewhite nicolewhite self-assigned this Jun 26, 2016
@viktorstrate
Copy link

I tried to copy / paste your snippet into scratchpad in firefox, and executed on algebra.js.org. It gave me this result

202/151x - 184270/151

I'm using firefox v. 52.0 (64-bit)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants