# std.math: remove constants that should be expressions · gitcafe/zig

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

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

Visibility: public

Requested revision: 2ab7f31e99defc62353c3dfed0f6f427c9ac8e80

Requested commit: 2ab7f31e99defc62353c3dfed0f6f427c9ac8e80

Commit: 2ab7f31e99defc62353c3dfed0f6f427c9ac8e80

Tree: 202109b1fc2959021d0e5db180a07eecc134e9bc

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
std.math: remove constants that should be expressions

All four of these can be represented in fewer characters with
expressions, which will be guaranteed to happen at compile-time, and
have the same or better precision.

The other math constants here which depend on function calls could be
similarly removed if and when #425 is solved. However I left them for
now since Zig does not eagerly evaluate functions with comptime parameters.

```

## Parents

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

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