# stage1: add @sin @cos @exp @exp2 @ln @log2 @log10 @fabs @floor @ceil @trunc @round · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/71e014caecaa54fdd8a0516710d2d9597da41398)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: 71e014caecaa54fdd8a0516710d2d9597da41398

Requested commit: 71e014caecaa54fdd8a0516710d2d9597da41398

Commit: 71e014caecaa54fdd8a0516710d2d9597da41398

Tree: 4cfc85ed66ba9aec49e3f672a80c39b98e598177

Author: Shawn Landden

Committer: Shawn Landden

## Message

```
stage1: add @sin @cos @exp @exp2 @ln @log2 @log10 @fabs @floor @ceil @trunc @round

and expand @sqrt

This revealed that the accuracy of ln is not as good as the current algorithm in
musl and glibc, and should be ported again.

v2: actually include tests
v3: fix reversal of in and out arguments on f128M_sqrt()
    add test for @sqrt on comptime_float
    do not include @nearbyInt() until it works on all targets.

```

## Parents

- [ebde2ff899c16612c7ff58df61f3946be47c51c8](https://git.cafe/gitcafe/zig/commit/ebde2ff899c16612c7ff58df61f3946be47c51c8?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/71e014caecaa54fdd8a0516710d2d9597da41398?format=markdown)
