gcem

C++ compile-time math library for constant expressions

brewmacoslinux
Try with needOr install directly
Source

About

C++ compile-time math library

Commands

gcem

Examples

Include gcem header in C++ source for compile-time math functions$ g++ -std=c++17 -I/usr/local/include myprogram.cpp -o myprogram
Use gcem functions like sqrt, sin, cos in constexpr contexts$ constexpr double result = gcem::sqrt(16.0);
Verify gcem installation by checking header location$ ls /usr/local/include/gcem.hpp