mirror of
https://codeberg.org/ziglang/zig.git
synced 2025-12-06 22:04:21 +00:00
Comparisons with absolute epsilons are usually useful when comparing numbers to zero, for non-zero numbers it's advised to switch to relative epsilons instead to obtain meaningful results (check [1] for more details). The new API introduces approxEqAbs and approxEqRel, where the former aliases and deprecated the old `approxEq`, allowing the user to pick the right tool for the job. The documentation is meant to guide the user in the choice of the correct alternative. [1] https://randomascii.wordpress.com/2012/02/25/comparing-floating-point-numbers-2012-edition/ |
||
|---|---|---|
| .. | ||
| abs.zig | ||
| acos.zig | ||
| acosh.zig | ||
| arg.zig | ||
| asin.zig | ||
| asinh.zig | ||
| atan.zig | ||
| atanh.zig | ||
| conj.zig | ||
| cos.zig | ||
| cosh.zig | ||
| exp.zig | ||
| ldexp.zig | ||
| log.zig | ||
| pow.zig | ||
| proj.zig | ||
| sin.zig | ||
| sinh.zig | ||
| sqrt.zig | ||
| tan.zig | ||
| tanh.zig | ||