Debian Codegraph @

src/core/ulib_math.h

raw symbols SCIP
1 /*----------------------------------------------------------------------------
2 ChucK Strongly-timed Audio Programming Language
3 Compiler, Virtual Machine, and Synthesis Engine
4
5 Copyright (c) 2003 Ge Wang and Perry R. Cook. All rights reserved.
6 http://chuck.stanford.edu/
7 http://chuck.cs.princeton.edu/
8
9 This program is free software; you can redistribute it and/or modify
10 it under the dual-license terms of EITHER the MIT License OR the GNU
11 General Public License (the latter as published by the Free Software
12 Foundation; either version 2 of the License or, at your option, any
13 later version).
14
15 This program is distributed in the hope that it will be useful and/or
16 interesting, but WITHOUT ANY WARRANTY; without even the implied warranty
17 of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 MIT Licence and/or the GNU General Public License for details.
19
20 You should have received a copy of the MIT License and the GNU General
21 Public License (GPL) along with this program; a copy of the GPL can also
22 be obtained by writing to the Free Software Foundation, Inc., 59 Temple
23 Place, Suite 330, Boston, MA 02111-1307 U.S.A.
24 -----------------------------------------------------------------------------*/
25
26 //-----------------------------------------------------------------------------
27 // file: ulib_math.h
28 // desc: class library for 'Math'
29 //
30 // author: Ge Wang ([email protected] | [email protected])
31 // date: Spring 2004
32 //-----------------------------------------------------------------------------
33 #ifndef __ULIB_MATH_H__
34 #define __ULIB_MATH_H__
35
36 #include "chuck_dl.h"
37
38 // query
39 DLL_QUERY libmath_query( Chuck_DL_Query * QUERY );
40
41 // impl
42 CK_DLL_SFUN( sin_impl );
43 CK_DLL_SFUN( cos_impl );
44 CK_DLL_SFUN( tan_impl );
45 CK_DLL_SFUN( cot_impl );
46 CK_DLL_SFUN( asin_impl );
47 CK_DLL_SFUN( acos_impl );
48 CK_DLL_SFUN( atan_impl );
49 CK_DLL_SFUN( atan2_impl );
50 CK_DLL_SFUN( sinh_impl );
51 CK_DLL_SFUN( cosh_impl );
52 CK_DLL_SFUN( tanh_impl );
53 CK_DLL_SFUN( hypot_impl );
54
55 // fast approximations of the above trig functions
56 CK_DLL_SFUN( fast_sin_impl );
57 CK_DLL_SFUN( fast_cos_impl );
58 CK_DLL_SFUN( fast_tan_impl );
59 CK_DLL_SFUN( fast_cot_impl );
60 CK_DLL_SFUN( fast_sinh_impl );
61 CK_DLL_SFUN( fast_cosh_impl );
62 CK_DLL_SFUN( fast_tanh_impl );
63 CK_DLL_SFUN( fast_exp_impl );
64 CK_DLL_SFUN( fast_inv_sqrt );
65
66 // Normal not-fast not-approximations
67 CK_DLL_SFUN( pow_impl );
68 CK_DLL_SFUN( sqrt_impl );
69 CK_DLL_SFUN( exp_impl );
70 CK_DLL_SFUN( exp2_impl );
71 CK_DLL_SFUN( log_impl );
72 CK_DLL_SFUN( log2_impl );
73 CK_DLL_SFUN( log10_impl );
74 CK_DLL_SFUN( floor_impl );
75 CK_DLL_SFUN( ceil_impl );
76 CK_DLL_SFUN( round_impl );
77 CK_DLL_SFUN( trunc_impl );
78 CK_DLL_SFUN( fmod_impl );
79 CK_DLL_SFUN( remainder_impl );
80 CK_DLL_SFUN( min_impl );
81 CK_DLL_SFUN( max_impl );
82 CK_DLL_SFUN( min_int_impl );
83 CK_DLL_SFUN( max_int_impl );
84 CK_DLL_SFUN( isinf_impl );
85 CK_DLL_SFUN( isnan_impl );
86 CK_DLL_SFUN( equal_impl );
87 CK_DLL_SFUN( equale_impl );
88 CK_DLL_SFUN( floatMax_impl );
89 CK_DLL_SFUN( intMax_impl );
90
91 CK_DLL_SFUN( nextpow2_impl );
92 CK_DLL_SFUN( ensurepow2_impl );
93
94 CK_DLL_SFUN( re_impl );
95 CK_DLL_SFUN( im_impl );
96 CK_DLL_SFUN( modulus_impl );
97 CK_DLL_SFUN( phase_impl );
98 CK_DLL_SFUN( rtop_impl );
99 CK_DLL_SFUN( ptor_impl );
100
101 CK_DLL_SFUN( random_impl );
102 CK_DLL_SFUN( randomf_impl );
103 CK_DLL_SFUN( random2f_impl );
104 CK_DLL_SFUN( random2_impl );
105 CK_DLL_SFUN( srandom_impl );
106 CK_DLL_SFUN( randomize_impl );
107
108 CK_DLL_SFUN( gauss_impl );
109
110 CK_DLL_SFUN( cossim_impl );
111 CK_DLL_SFUN( cossim3d_impl );
112 CK_DLL_SFUN( cossim4d_impl );
113
114 CK_DLL_SFUN( euclidean_impl );
115 CK_DLL_SFUN( euclidean2d_impl );
116 CK_DLL_SFUN( euclidean3d_impl );
117 CK_DLL_SFUN( euclidean4d_impl );
118
119 CK_DLL_SFUN( map_impl );
120 CK_DLL_SFUN( map2_impl );
121
122 // spherical harmonics | (added) 1.5.5.8 by everett 2026
123 CK_DLL_SFUN( sh_impl );
124
125 #endif