diff options
| author | Mistivia <i@mistivia.com> | 2025-06-22 17:23:32 +0800 |
|---|---|---|
| committer | Mistivia <i@mistivia.com> | 2025-06-22 17:23:49 +0800 |
| commit | 47c8353366c5cd7544d182a897bacaa303c08d8e (patch) | |
| tree | d5362488aae5baba2afc3884d5339a09f182eaf9 /src/builtins.h | |
| parent | 5c0eddbed7f838daac17e0b9d9c2a23f17da4660 (diff) | |
math functions
Diffstat (limited to 'src/builtins.h')
| -rw-r--r-- | src/builtins.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/builtins.h b/src/builtins.h index abcd7a0..3c54bdc 100644 --- a/src/builtins.h +++ b/src/builtins.h @@ -3,6 +3,26 @@ #include "interp.h" + +SExpRef builtin_sqrt(Interp *interp, SExpRef sexp); +SExpRef builtin_cbrt(Interp *interp, SExpRef sexp); +SExpRef builtin_float(Interp *interp, SExpRef sexp); +SExpRef builtin_abs(Interp *interp, SExpRef sexp); +SExpRef builtin_pow(Interp *interp, SExpRef sexp); +SExpRef builtin_floor(Interp *interp, SExpRef sexp); +SExpRef builtin_truncate(Interp *interp, SExpRef sexp); +SExpRef builtin_ceiling(Interp *interp, SExpRef sexp); +SExpRef builtin_round(Interp *interp, SExpRef sexp); +SExpRef builtin_sin(Interp *interp, SExpRef sexp); +SExpRef builtin_cos(Interp *interp, SExpRef sexp); +SExpRef builtin_tan(Interp *interp, SExpRef sexp); +SExpRef builtin_asin(Interp *interp, SExpRef sexp); +SExpRef builtin_acos(Interp *interp, SExpRef sexp); +SExpRef builtin_atan(Interp *interp, SExpRef sexp); +SExpRef builtin_ln(Interp *interp, SExpRef sexp); +SExpRef builtin_log10(Interp *interp, SExpRef sexp); +SExpRef builtin_log2(Interp *interp, SExpRef sexp); +SExpRef builtin_exp(Interp *interp, SExpRef sexp); SExpRef builtin_min(Interp *interp, SExpRef sexp); SExpRef builtin_max(Interp *interp, SExpRef sexp); SExpRef builtin_equal(Interp *interp, SExpRef sexp); |
