munrocket

Results 120 comments of munrocket

Sinpi/cospi without correct rounding in last ulp.

I am just read source code :D ``` function sinpi(x) { return Math.sin(Math.PI*x); } ``` Is not enough because floating point numbers perform rounding after each operation(multiplication) in round-to-nearest-even mode.

By the way, if your `sinpi/cospi` will pass compliance tests it is very clever implementation and can be proposed in tc39 and added to javascript specification. Right not I am...

If this is related to RGBA floating point packing, I think I have an idea how to solve this floating point precision issue.

Explicit casting is most interesting feature for math related packages. For example I want to overload linear operators ("+") and ("*") for complex numbers algebra or vector space. ```ts //z3...

Library with linear algebra, complex numbers and other math works without WebAssembly.Memory. Usually they have ridiculous amount of interoperability operations and simply useless as wasm libraries in current design. So...

I want to fix head rotation. Also I probably add mouse fallback into API. But for now check existed examples, it is hardcoded somewhere.

[double.js](https://github.com/munrocket/double.js) much faster than decimal.js and extends precision. Same techniques with float numbers used in deepzoom programs like Kalles Fractaler.