New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
accuracy of Math.cbrt, Math.expm1, Math.log1p #392
Comments
Nothing in the spec defines the implementation or epsilon of the Math functions ( https://people.mozilla.org/~jorendorff/es6-draft.html#sec-function-properties-of-the-math-object ) It specifically says "For other argument values, these functions are intended to compute approximations to the results of familiar mathematical functions, but some latitude is allowed in the choice of approximation algorithms." What compatibility is necessary to test here? |
@Yaffle you should bring it up on es-discuss |
@Yaffle You can propose better implementation. |
@Yaffle I'm serious. I'm not specialist in math. You can propose your implementation math functions for these libraries. |
@Yaffle Thanks for |
Thanks - can you provide some specific examples for each one that I can use as failing tests? |
|
Thanks! |
@Yaffle PRs with the tests to |
@Yaffle thanks!
I've filed an |
Ah - new PRs welcome, let's make sure the comments include both the OS and browser version. |
@Yaffle thanks - it's hard to see what the problem is, could you perhaps indicate what the value should be, and what it is in the browser that deviates? |
Thanks, I filed #724 - if you could add comments with other Konqueror issues that'd be great, since I don't have a way to test it. |
I would consider removing Konqueror. Seems like an ancient browser with very specific audience. I'm struggling to figure out who would still be using it. |
That's also a fair point - there may not be any value in including it. |
It would be helpful if you could indicate what the correct/best answer should be in all these cases as well |
@Yaffle lol wat? why did you delete all your comments? |
@ljharb , I have merged everything into the first comment. |
|
Firefox < 48 on Windows:
https://bugzilla.mozilla.org/show_bug.cgi?id=933257
https://bugzilla.mozilla.org/show_bug.cgi?id=897634
Firefox
Chrome < 54 on Windows:
https://code.google.com/p/v8/issues/detail?id=3468
https://code.google.com/p/v8/issues/detail?id=3509
Konqueror 4.13 (Ubuntu):
https://github.com/KDE/kjs/blob/master/src/kjs/math_object.cpp
buggy
Math.round
in Safari 10 / Mobile Safari 10 / IE 11 / Edge 13 / Opera 12 / Konqueror 4.13:Math.pow
issue in Firefox, Chrome, Safari, Edge when the second argument is an integer:https://code.google.com/p/v8/issues/detail?id=3599
https://bugzilla.mozilla.org/show_bug.cgi?id=618251
Chrome Mobile 52 (Android 5.1):
Mobile Safari 10 (iOS 9.2):
es6-shim:
core-js:
Traceur AND MDN's polyfills:
Closure:
The text was updated successfully, but these errors were encountered: