# element-math Big naturals with Montgomery arithmetic; IEEE 754 binary64 in software; correctly rounded exp, log, sin, cos, tan. ```bend import element-math@0.1.0.0/f64.bend as F64 ``` Import the module you use: `package.bend` only gathers the modules for the hub, and exposes no names of its own. Written for Element, a browser engine for agents in Bend 2, and kept free of anything specific to it. ## Modules - `big.bend` - `f64.bend` - `consts.bend` - `elem.bend` ## Depends on - `element-ints@0.1.0.0` ## Native code Pure Bend: no `.c` or `.js` files. ## Known issues - f64 is correct on every vector tried, but it is slow, and it has no laws for every input. `bend-collections` has a proved binary64 core. - Reading a decimal with a very long mantissa and a large negative exponent misreads it (being fixed). ## Versions `0.F.A.N`. The first number stays 0. `F` is the phase: 1 runs inside Element under its test suites, 2 has laws for every input and a differential oracle in the package, 3 is kernel-checked (`--verdict`) and fuzzed, 4 is a long stable run. `A` goes up when the API changes. `N` goes up with each fix, speed gain or new proof. ## Licence Apache-2.0. See `LICENSE` and `NOTICE`.