You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: lib/node_modules/@stdlib/math/base/special/besselj0/README.md
+88
Original file line number
Diff line number
Diff line change
@@ -99,6 +99,94 @@ for ( i = 0; i < 100; i++ ) {
99
99
100
100
<!-- /.examples -->
101
101
102
+
<!-- C interface documentation. -->
103
+
104
+
* * *
105
+
106
+
<sectionclass="c">
107
+
108
+
## C APIs
109
+
110
+
<!-- Section to include introductory text. Make sure to keep an empty line after the intro `section` element and another before the `/section` close. -->
111
+
112
+
<sectionclass="intro">
113
+
114
+
</section>
115
+
116
+
<!-- /.intro -->
117
+
118
+
<!-- C usage documentation. -->
119
+
120
+
<sectionclass="usage">
121
+
122
+
### Usage
123
+
124
+
```c
125
+
#include"stdlib/math/base/special/besselj0.h"
126
+
```
127
+
128
+
#### stdlib_base_besselj0( x )
129
+
130
+
Computes the [Bessel function of the first kind][bessel-first-kind] of order zero at `x`.
131
+
132
+
```c
133
+
double out = stdlib_base_besselj0( 0.0 );
134
+
// returns 1.0
135
+
136
+
out = stdlib_base_besselj0( 1.0 );
137
+
// returns ~0.765
138
+
```
139
+
140
+
The function accepts the following arguments:
141
+
142
+
-**x**: `[in] double` input value.
143
+
144
+
```c
145
+
doublestdlib_base_besselj0( const double x );
146
+
```
147
+
148
+
</section>
149
+
150
+
<!-- /.usage -->
151
+
152
+
<!-- C API usage notes. Make sure to keep an empty line after the `section` element and another before the `/section` close. -->
153
+
154
+
<section class="notes">
155
+
156
+
</section>
157
+
158
+
<!-- /.notes -->
159
+
160
+
<!-- C API usage examples. -->
161
+
162
+
<section class="examples">
163
+
164
+
### Examples
165
+
166
+
```c
167
+
#include "stdlib/math/base/special/besselj0.h"
168
+
#include <stdio.h>
169
+
170
+
int main( void ) {
171
+
const double x[] = { 0.0, 1.0, 2.0, 3.0, 4.0 };
172
+
173
+
double y;
174
+
int i;
175
+
for ( i = 0; i < 5; i++ ) {
176
+
y = stdlib_base_besselj0( x[ i ] );
177
+
printf( "besselj0(%lf) = %lf\n", x[ i ], y );
178
+
}
179
+
}
180
+
```
181
+
182
+
</section>
183
+
184
+
<!-- /.examples -->
185
+
186
+
</section>
187
+
188
+
<!-- /.c -->
189
+
102
190
<!-- Section for related `stdlib` packages. Do not manually edit this section, as it is automatically populated. -->
0 commit comments