# Add math library · gitcafe/zig

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

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

Visibility: public

Requested revision: 4c16f9a3c35b23b9917f2a27b91ba8cd20e6fd82

Requested commit: 4c16f9a3c35b23b9917f2a27b91ba8cd20e6fd82

Commit: 4c16f9a3c35b23b9917f2a27b91ba8cd20e6fd82

Tree: 778f0f06734f7dc17e9269ee1cf5b513f7b504c0

Author: Marc Tiehuis

Committer: Marc Tiehuis

## Message

```
Add math library

This covers the majority of the functions as covered by the C99
specification for a math library.

Code is adapted primarily from musl libc, with the pow and standard
trigonometric functions adapted from the Go stdlib.

Changes:

 - Remove assert expose in index and import as needed.
 - Add float log function and merge with existing base 2 integer
   implementation.

See https://github.com/tiehuis/zig-fmath.
See #374.

```

## Parents

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

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