|
LMMC
Lamina Mathematic core
|
#include "lmmc/stdlib.h"#include <ctype.h>#include <math.h>#include <string.h>#include "stdlib_internal.h"结构体 | |
| struct | lmmc_std_constant_entry_t |
| struct | lmmc_std_unit_sig_t |
| struct | lmmc_std_unit_entry_t |
枚举 | |
| enum | { LMMC_STD_MAX_UNIT_EXPONENT = 32 , LMMC_STD_UNIT_DIM_COUNT = 9 } |
| struct lmmc_std_constant_entry_t |
在文件 stdlib_constants_units.c 第 9 行定义.
| 成员变量 | ||
|---|---|---|
| const char * | name | |
| lmmc_real_t | value | |
| const char * | unit | |
| struct lmmc_std_unit_sig_t |
| struct lmmc_std_unit_entry_t |
在文件 stdlib_constants_units.c 第 65 行定义.
| 成员变量 | ||
|---|---|---|
| const char * | name | |
| double | scale | |
| int | dims[9] | |
| anonymous enum |
| 枚举值 | ||
|---|---|---|
| LMMC_STD_MAX_UNIT_EXPONENT | 32 | |
| LMMC_STD_UNIT_DIM_COUNT | 9 | |
在文件 stdlib_constants_units.c 第 60 行定义.
| lmmc_status_t lmmc_std_math_pi | ( | lmmc_real_t * | out | ) |
返回 LSR 规范的 std.math 常量 pi。
在文件 stdlib_constants_units.c 第 221 行定义.
引用了 LMMC_CONST_PI , 以及 lmmc_std_math_pi().
被这些函数引用 lmmc_std_math_pi().
| lmmc_status_t lmmc_std_math_e | ( | lmmc_real_t * | out | ) |
返回 LSR 规范的 std.math 常量 e。
在文件 stdlib_constants_units.c 第 226 行定义.
引用了 lmmc_std_math_e().
被这些函数引用 lmmc_std_math_e().
| lmmc_status_t lmmc_std_math_phi | ( | lmmc_real_t * | out | ) |
返回 LSR 规范的 std.math 常量 phi。
在文件 stdlib_constants_units.c 第 231 行定义.
引用了 lmmc_std_math_phi().
被这些函数引用 lmmc_std_math_phi().
| size_t lmmc_std_constants_count | ( | void | ) |
返回 LSR 规范的 std.constants 条目数。
在文件 stdlib_constants_units.c 第 236 行定义.
引用了 lmmc_std_constants_count().
被这些函数引用 lmmc_std_constants_count().
| const char * lmmc_std_constants_name | ( | size_t | index | ) |
按索引返回 LSR 规范的 std.constants 条目名;索引越界时返回 NULL。
在文件 stdlib_constants_units.c 第 241 行定义.
引用了 lmmc_std_constants_name().
被这些函数引用 lmmc_std_constants_name().
| lmmc_status_t lmmc_std_constants_get | ( | const char * | name, |
| lmmc_real_t * | out ) |
按名称返回 LSR 规范的 std.constants 数值。
在文件 stdlib_constants_units.c 第 247 行定义.
引用了 LMMC_STATUS_INVALID_ARGUMENT, LMMC_STATUS_OK, lmmc_std_constants_get() , 以及 lmmc_std_constant_entry_t::value.
被这些函数引用 lmmc_std_constants_get().
| const char * lmmc_std_constants_unit | ( | const char * | name | ) |
按名称返回 LSR 规范的 std.constants 单位字符串;条目无单位时返回 NULL。
在文件 stdlib_constants_units.c 第 255 行定义.
引用了 lmmc_std_constants_unit() , 以及 lmmc_std_constant_entry_t::unit.
被这些函数引用 lmmc_std_constants_unit().
| lmmc_status_t lmmc_std_constants_entry | ( | size_t | index, |
| const char ** | out_name, | ||
| lmmc_real_t * | out_value, | ||
| const char ** | out_unit ) |
按索引返回完整的 LSR 规范 std.constants 条目。
在文件 stdlib_constants_units.c 第 261 行定义.
引用了 LMMC_STATUS_INVALID_ARGUMENT, LMMC_STATUS_OK , 以及 lmmc_std_constants_entry().
被这些函数引用 lmmc_std_constants_entry().
| lmmc_status_t lmmc_std_math_i | ( | lmmc_complex_t * | out | ) |
返回虚数单位 std.math.I。
在文件 stdlib_constants_units.c 第 278 行定义.
引用了 lmmc_complex_create() , 以及 lmmc_std_math_i().
被这些函数引用 lmmc_std_math_i().
| lmmc_status_t lmmc_std_units_convert | ( | lmmc_real_t | x, |
| const char * | from_unit, | ||
| const char * | to_unit, | ||
| lmmc_real_t * | out ) |
在文件 stdlib_constants_units.c 第 282 行定义.
引用了 LMMC_STATUS_DIMENSION_MISMATCH, LMMC_STATUS_INVALID_ARGUMENT, LMMC_STATUS_NUMERICAL_FAILURE, lmmc_std_units_convert() , 以及 lmmc_std_unit_sig_t::scale.
被这些函数引用 lmmc_std_units_convert().
| lmmc_status_t lmmc_std_units_convert_from_si | ( | lmmc_real_t | x, |
| const char * | to_unit, | ||
| lmmc_real_t * | out ) |
在文件 stdlib_constants_units.c 第 303 行定义.
引用了 LMMC_STATUS_INVALID_ARGUMENT, LMMC_STATUS_NUMERICAL_FAILURE, lmmc_std_units_convert_from_si() , 以及 lmmc_std_unit_sig_t::scale.
被这些函数引用 lmmc_std_units_convert_from_si() , 以及 lmmc_std_units_convert_num().
| lmmc_status_t lmmc_std_units_convert_num | ( | lmmc_real_t | x, |
| const char * | to_unit, | ||
| lmmc_real_t * | out ) |
在文件 stdlib_constants_units.c 第 318 行定义.
引用了 lmmc_std_units_convert_from_si() , 以及 lmmc_std_units_convert_num().
被这些函数引用 lmmc_std_units_convert_num().
| lmmc_status_t lmmc_std_units_strip | ( | lmmc_real_t | x, |
| lmmc_real_t * | out ) |
在文件 stdlib_constants_units.c 第 325 行定义.
引用了 LMMC_STATUS_NUMERICAL_FAILURE, LMMC_STATUS_UNIT_STRIP_OVERFLOW , 以及 lmmc_std_units_strip().
被这些函数引用 lmmc_std_units_strip().
| lmmc_status_t lmmc_std_units_strip_num | ( | lmmc_real_t | x, |
| const char * | unit, | ||
| lmmc_real_t * | out ) |
在文件 stdlib_constants_units.c 第 333 行定义.
引用了 LMMC_STATUS_INVALID_ARGUMENT, LMMC_STATUS_NUMERICAL_FAILURE, LMMC_STATUS_UNIT_STRIP_INVALID, LMMC_STATUS_UNIT_STRIP_LEGACY_SYNTAX, LMMC_STATUS_UNIT_STRIP_OVERFLOW, lmmc_std_units_strip_num() , 以及 lmmc_std_unit_sig_t::scale.
被这些函数引用 lmmc_std_units_strip_num().
| lmmc_status_t lmmc_std_units_strip_scalar | ( | lmmc_real_t | x, |
| lmmc_real_t * | out ) |
在文件 stdlib_constants_units.c 第 357 行定义.
引用了 LMMC_STATUS_NUMERICAL_FAILURE, LMMC_STATUS_UNIT_STRIP_OVERFLOW , 以及 lmmc_std_units_strip_scalar().
被这些函数引用 lmmc_std_units_strip_scalar().
| lmmc_status_t lmmc_std_units_is_dimensionless_num | ( | lmmc_real_t | x, |
| int * | out ) |
在文件 stdlib_constants_units.c 第 365 行定义.
引用了 LMMC_STATUS_INVALID_ARGUMENT, LMMC_STATUS_NUMERICAL_FAILURE, LMMC_STATUS_OK , 以及 lmmc_std_units_is_dimensionless_num().
被这些函数引用 lmmc_std_units_is_dimensionless_num().
| lmmc_status_t lmmc_std_units_is_dimensionless | ( | const char * | unit, |
| int * | out ) |
在文件 stdlib_constants_units.c 第 373 行定义.
引用了 LMMC_STATUS_INVALID_ARGUMENT, LMMC_STATUS_OK , 以及 lmmc_std_units_is_dimensionless().
被这些函数引用 lmmc_std_units_is_dimensionless().