Hcephes
The Netlib Cephes library reformatted for the 21st century.
Install / Use
/learn @limix/HcephesREADME
hcephes
The Netlib Cephes library reformatted for the 21st century.
Install
The easiest way of installing it is via conda
conda install -c conda-forge hcephes
Alternatively, one can compile and install it. From Linux, MacOS, or Windows (bash terminal) systems, enter
# DO_CMD=sudo
curl -fsSL https://git.io/JerYI | GITHUB_USER=limix GITHUB_PROJECT=hcephes bash
Usage
It requires you to provide the library name hcephes to your linker and the path
inclusion of its hcephes.h header to your compiler.
For example, suppose you on MacOS and you are using gcc.
A C file like
/* example.c */
#include "hcephes.h"
#include <stdio.h>
#include <stdlib.h>
int main() {
printf("%f\n", hcephes_bdtr(4, 5, 0.25));
return 0;
}
might require the following command to create an executable file:
gcc example.c -lhcephes -I/usr/local/include -o example
For the complete list of the available functions, we refer the reader to include/hcephes.h file itself and to the cephes library documentation.
CMake
Add the following to your CMakeLists.txt:
find_package(hcephes REQUIRED)
target_link_libraries(mylib PRIVATE HCEPHES::hcephes)
Authors
License
This project is licensed under the MIT License.
Related Skills
node-connect
349.7kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
109.7kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
349.7kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
349.7kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
