LMMC
Lamina Mathematic core
载入中...
搜索中...
未找到
stdlib_math.h
浏览该文件的文档.
1
2#ifndef LMMC_STDLIB_MATH_H
3#define LMMC_STDLIB_MATH_H
4
5#include "lmmc/complex.h"
6#include "lmmc/status.h"
7
8#ifdef __cplusplus
9extern "C" {
10#endif
11
14 lmmc_real_t imag,
15 lmmc_complex_t* out);
24 lmmc_real_t* out);
25
30 lmmc_real_t* out);
39 lmmc_real_t* out);
46 lmmc_real_t hi, lmmc_real_t* out);
47
48#ifdef __cplusplus
49}
50#endif
51
52#endif
复数类型与运算模块.
复数类型,包含实部与虚部.
double lmmc_real_t
Public and internal LMMC real type.
LMMC 通用状态码定义.
lmmc_status_t
LMMC 库统一返回的状态码.
lmmc_status_t lmmc_std_math_log10(lmmc_real_t x, lmmc_real_t *out)
lmmc_status_t lmmc_std_math_sqrt(lmmc_real_t x, lmmc_real_t *out)
lmmc_status_t lmmc_std_math_ceil(lmmc_real_t x, lmmc_real_t *out)
lmmc_status_t lmmc_std_math_sin(lmmc_real_t x, lmmc_real_t *out)
lmmc_status_t lmmc_std_math_complex_abs(const lmmc_complex_t *z, lmmc_real_t *out)
为 std.math.abs 计算复数模。
lmmc_status_t lmmc_std_math_tan(lmmc_real_t x, lmmc_real_t *out)
lmmc_status_t lmmc_std_math_abs(lmmc_real_t x, lmmc_real_t *out)
lmmc_status_t lmmc_std_math_ln(lmmc_real_t x, lmmc_real_t *out)
lmmc_status_t lmmc_std_math_exp(lmmc_real_t x, lmmc_real_t *out)
lmmc_status_t lmmc_std_math_pow(lmmc_real_t x, lmmc_real_t y, lmmc_real_t *out)
lmmc_status_t lmmc_std_math_round(lmmc_real_t x, lmmc_real_t *out)
lmmc_status_t lmmc_std_math_conj(const lmmc_complex_t *z, lmmc_complex_t *out)
为 std.math.conj 计算复共轭。
lmmc_status_t lmmc_std_math_atan(lmmc_real_t x, lmmc_real_t *out)
lmmc_status_t lmmc_std_math_log(lmmc_real_t x, lmmc_real_t *out)
lmmc_status_t lmmc_std_math_log_base(lmmc_real_t x, lmmc_real_t base, lmmc_real_t *out)
lmmc_status_t lmmc_std_math_cos(lmmc_real_t x, lmmc_real_t *out)
lmmc_status_t lmmc_std_math_clamp(lmmc_real_t x, lmmc_real_t lo, lmmc_real_t hi, lmmc_real_t *out)
lmmc_status_t lmmc_std_math_imag(const lmmc_complex_t *z, lmmc_real_t *out)
提取复数的虚部。
lmmc_status_t lmmc_std_math_floor(lmmc_real_t x, lmmc_real_t *out)
lmmc_status_t lmmc_std_math_asin(lmmc_real_t x, lmmc_real_t *out)
lmmc_status_t lmmc_std_math_real(const lmmc_complex_t *z, lmmc_real_t *out)
提取复数的实部。
lmmc_status_t lmmc_std_math_complex(lmmc_real_t real, lmmc_real_t imag, lmmc_complex_t *out)
由实部与虚部构造复数。
lmmc_status_t lmmc_std_math_acos(lmmc_real_t x, lmmc_real_t *out)