LMMC
Lamina Mathematic core
Toggle main menu visibility
载入中...
搜索中...
未找到
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
9
extern
"C"
{
10
#endif
11
13
lmmc_status_t
lmmc_std_math_complex
(
lmmc_real_t
real,
14
lmmc_real_t
imag,
15
lmmc_complex_t
* out);
17
lmmc_status_t
lmmc_std_math_real
(
const
lmmc_complex_t
* z,
lmmc_real_t
* out);
19
lmmc_status_t
lmmc_std_math_imag
(
const
lmmc_complex_t
* z,
lmmc_real_t
* out);
21
lmmc_status_t
lmmc_std_math_conj
(
const
lmmc_complex_t
* z,
lmmc_complex_t
* out);
23
lmmc_status_t
lmmc_std_math_complex_abs
(
const
lmmc_complex_t
* z,
24
lmmc_real_t
* out);
25
26
lmmc_status_t
lmmc_std_math_sin
(
lmmc_real_t
x,
lmmc_real_t
* out);
27
lmmc_status_t
lmmc_std_math_cos
(
lmmc_real_t
x,
lmmc_real_t
* out);
28
lmmc_status_t
lmmc_std_math_tan
(
lmmc_real_t
x,
lmmc_real_t
* out);
29
lmmc_status_t
lmmc_std_math_pow
(
lmmc_real_t
x,
lmmc_real_t
y,
30
lmmc_real_t
* out);
31
lmmc_status_t
lmmc_std_math_asin
(
lmmc_real_t
x,
lmmc_real_t
* out);
32
lmmc_status_t
lmmc_std_math_acos
(
lmmc_real_t
x,
lmmc_real_t
* out);
33
lmmc_status_t
lmmc_std_math_atan
(
lmmc_real_t
x,
lmmc_real_t
* out);
34
lmmc_status_t
lmmc_std_math_sqrt
(
lmmc_real_t
x,
lmmc_real_t
* out);
35
lmmc_status_t
lmmc_std_math_exp
(
lmmc_real_t
x,
lmmc_real_t
* out);
36
lmmc_status_t
lmmc_std_math_ln
(
lmmc_real_t
x,
lmmc_real_t
* out);
37
lmmc_status_t
lmmc_std_math_log
(
lmmc_real_t
x,
lmmc_real_t
* out);
38
lmmc_status_t
lmmc_std_math_log_base
(
lmmc_real_t
x,
lmmc_real_t
base,
39
lmmc_real_t
* out);
40
lmmc_status_t
lmmc_std_math_log10
(
lmmc_real_t
x,
lmmc_real_t
* out);
41
lmmc_status_t
lmmc_std_math_abs
(
lmmc_real_t
x,
lmmc_real_t
* out);
42
lmmc_status_t
lmmc_std_math_floor
(
lmmc_real_t
x,
lmmc_real_t
* out);
43
lmmc_status_t
lmmc_std_math_ceil
(
lmmc_real_t
x,
lmmc_real_t
* out);
44
lmmc_status_t
lmmc_std_math_round
(
lmmc_real_t
x,
lmmc_real_t
* out);
45
lmmc_status_t
lmmc_std_math_clamp
(
lmmc_real_t
x,
lmmc_real_t
lo,
46
lmmc_real_t
hi,
lmmc_real_t
* out);
47
48
#ifdef __cplusplus
49
}
50
#endif
51
52
#endif
complex.h
复数类型与运算模块.
lmmc_complex_t
复数类型,包含实部与虚部.
定义
complex.h:25
lmmc_real_t
double lmmc_real_t
Public and internal LMMC real type.
定义
config.h:28
status.h
LMMC 通用状态码定义.
lmmc_status_t
lmmc_status_t
LMMC 库统一返回的状态码.
定义
status.h:22
lmmc_std_math_log10
lmmc_status_t lmmc_std_math_log10(lmmc_real_t x, lmmc_real_t *out)
定义
stdlib_scalar_functions.c:144
lmmc_std_math_sqrt
lmmc_status_t lmmc_std_math_sqrt(lmmc_real_t x, lmmc_real_t *out)
定义
stdlib_scalar_functions.c:101
lmmc_std_math_ceil
lmmc_status_t lmmc_std_math_ceil(lmmc_real_t x, lmmc_real_t *out)
定义
stdlib_scalar_functions.c:164
lmmc_std_math_sin
lmmc_status_t lmmc_std_math_sin(lmmc_real_t x, lmmc_real_t *out)
定义
stdlib_scalar_functions.c:36
lmmc_std_math_complex_abs
lmmc_status_t lmmc_std_math_complex_abs(const lmmc_complex_t *z, lmmc_real_t *out)
为 std.math.abs 计算复数模。
定义
stdlib_complex_sets.c:43
lmmc_std_math_tan
lmmc_status_t lmmc_std_math_tan(lmmc_real_t x, lmmc_real_t *out)
定义
stdlib_scalar_functions.c:50
lmmc_std_math_abs
lmmc_status_t lmmc_std_math_abs(lmmc_real_t x, lmmc_real_t *out)
定义
stdlib_scalar_functions.c:152
lmmc_std_math_ln
lmmc_status_t lmmc_std_math_ln(lmmc_real_t x, lmmc_real_t *out)
定义
stdlib_scalar_functions.c:116
lmmc_std_math_exp
lmmc_status_t lmmc_std_math_exp(lmmc_real_t x, lmmc_real_t *out)
定义
stdlib_scalar_functions.c:109
lmmc_std_math_pow
lmmc_status_t lmmc_std_math_pow(lmmc_real_t x, lmmc_real_t y, lmmc_real_t *out)
定义
stdlib_scalar_functions.c:57
lmmc_std_math_round
lmmc_status_t lmmc_std_math_round(lmmc_real_t x, lmmc_real_t *out)
定义
stdlib_scalar_functions.c:169
lmmc_std_math_conj
lmmc_status_t lmmc_std_math_conj(const lmmc_complex_t *z, lmmc_complex_t *out)
为 std.math.conj 计算复共轭。
定义
stdlib_complex_sets.c:32
lmmc_std_math_atan
lmmc_status_t lmmc_std_math_atan(lmmc_real_t x, lmmc_real_t *out)
定义
stdlib_scalar_functions.c:94
lmmc_std_math_log
lmmc_status_t lmmc_std_math_log(lmmc_real_t x, lmmc_real_t *out)
定义
stdlib_scalar_functions.c:124
lmmc_std_math_log_base
lmmc_status_t lmmc_std_math_log_base(lmmc_real_t x, lmmc_real_t base, lmmc_real_t *out)
定义
stdlib_scalar_functions.c:129
lmmc_std_math_cos
lmmc_status_t lmmc_std_math_cos(lmmc_real_t x, lmmc_real_t *out)
定义
stdlib_scalar_functions.c:43
lmmc_std_math_clamp
lmmc_status_t lmmc_std_math_clamp(lmmc_real_t x, lmmc_real_t lo, lmmc_real_t hi, lmmc_real_t *out)
定义
stdlib_scalar_functions.c:174
lmmc_std_math_imag
lmmc_status_t lmmc_std_math_imag(const lmmc_complex_t *z, lmmc_real_t *out)
提取复数的虚部。
定义
stdlib_complex_sets.c:25
lmmc_std_math_floor
lmmc_status_t lmmc_std_math_floor(lmmc_real_t x, lmmc_real_t *out)
定义
stdlib_scalar_functions.c:159
lmmc_std_math_asin
lmmc_status_t lmmc_std_math_asin(lmmc_real_t x, lmmc_real_t *out)
定义
stdlib_scalar_functions.c:78
lmmc_std_math_real
lmmc_status_t lmmc_std_math_real(const lmmc_complex_t *z, lmmc_real_t *out)
提取复数的实部。
定义
stdlib_complex_sets.c:18
lmmc_std_math_complex
lmmc_status_t lmmc_std_math_complex(lmmc_real_t real, lmmc_real_t imag, lmmc_complex_t *out)
由实部与虚部构造复数。
定义
stdlib_complex_sets.c:7
lmmc_std_math_acos
lmmc_status_t lmmc_std_math_acos(lmmc_real_t x, lmmc_real_t *out)
定义
stdlib_scalar_functions.c:86
lmmc
stdlib_math.h
生成于
, 为 LMMC使用
1.18.0