@@ -191,55 +191,82 @@ MATH_FUN_2(pow, pow)
191
191
MATH_FUN_1 (exp , exp )
192
192
#if MICROPY_PY_MATH_SPECIAL_FUNCTIONS
193
193
//| def expm1(x: float) -> float:
194
- //| """Return ``exp(x) - 1``."""
194
+ //| """Return ``exp(x) - 1``.
195
+ //|
196
+ //| May not be available on some boards.
197
+ //| """
195
198
//| ...
196
199
//|
197
200
MATH_FUN_1 (expm1 , expm1 )
198
201
199
202
//| def log2(x: float) -> float:
200
- //| """Return the base-2 logarithm of ``x``."""
203
+ //| """Return the base-2 logarithm of ``x``.
204
+ //|
205
+ //| May not be available on some boards.
206
+ //| """
201
207
//| ...
202
208
//|
203
209
MATH_FUN_1_ERRCOND (log2 , log2 , (x <= (mp_float_t )0.0 ))
204
210
205
211
//| def log10(x: float) -> float:
206
- //| """Return the base-10 logarithm of ``x``."""
212
+ //| """Return the base-10 logarithm of ``x``.
213
+ //|
214
+ //| May not be available on some boards.
215
+ //| """
207
216
//| ...
208
217
//|
209
218
MATH_FUN_1_ERRCOND (log10 , log10 , (x <= (mp_float_t )0.0 ))
210
219
211
220
//| def cosh(x: float) -> float:
212
- //| """Return the hyperbolic cosine of ``x``."""
221
+ //| """Return the hyperbolic cosine of ``x``.
222
+ //|
223
+ //| May not be available on some boards.
224
+ //| """
213
225
//| ...
214
226
//|
215
227
MATH_FUN_1 (cosh , cosh )
216
228
217
229
//| def sinh(x: float) -> float:
218
- //| """Return the hyperbolic sine of ``x``."""
230
+ //| """Return the hyperbolic sine of ``x``.
231
+ //|
232
+ //| May not be available on some boards.
233
+ //| """
219
234
//| ...
220
235
//|
221
236
MATH_FUN_1 (sinh , sinh )
222
237
223
238
//| def tanh(x: float) -> float:
224
- //| """Return the hyperbolic tangent of ``x``."""
239
+ //| """Return the hyperbolic tangent of ``x``.
240
+ //|
241
+ //| May not be available on some boards.
242
+ //| """
225
243
//| ...
226
244
//|
227
245
MATH_FUN_1 (tanh , tanh )
228
246
229
247
//| def acosh(x: float) -> float:
230
- //| """Return the inverse hyperbolic cosine of ``x``."""
248
+ //| """Return the inverse hyperbolic cosine of ``x``.
249
+ //|
250
+ //| May not be available on some boards.
251
+ //| """
231
252
//| ...
232
253
//|
233
254
MATH_FUN_1 (acosh , acosh )
234
255
235
256
//| def asinh(x: float) -> float:
236
- //| """Return the inverse hyperbolic sine of ``x``."""
257
+ //| """Return the inverse hyperbolic sine of ``x``.
258
+ //|
259
+ //| May not be available on some boards.
260
+ //| """
237
261
//| ...
238
262
//|
239
263
MATH_FUN_1 (asinh , asinh )
240
264
241
265
//| def atanh(x: float) -> float:
242
- //| """Return the inverse hyperbolic tangent of ``x``."""
266
+ //| """Return the inverse hyperbolic tangent of ``x``.
267
+ //|
268
+ //| May not be available on some boards.
269
+ //| """
243
270
//| ...
244
271
//|
245
272
MATH_FUN_1 (atanh , atanh )
@@ -281,25 +308,37 @@ MATH_FUN_2(ldexp, ldexp)
281
308
#if MICROPY_PY_MATH_SPECIAL_FUNCTIONS
282
309
283
310
//| def erf(x: float) -> float:
284
- //| """Return the error function of ``x``."""
311
+ //| """Return the error function of ``x``.
312
+ //|
313
+ //| May not be available on some boards.
314
+ //| """
285
315
//| ...
286
316
//|
287
317
MATH_FUN_1 (erf , erf )
288
318
289
319
//| def erfc(x: float) -> float:
290
- //| """Return the complementary error function of ``x``."""
320
+ //| """Return the complementary error function of ``x``.
321
+ //|
322
+ //| May not be available on some boards.
323
+ //| """
291
324
//| ...
292
325
//|
293
326
MATH_FUN_1 (erfc , erfc )
294
327
295
328
//| def gamma(x: float) -> float:
296
- //| """Return the gamma function of ``x``."""
329
+ //| """Return the gamma function of ``x``.
330
+ //|
331
+ //| May not be available on some boards.
332
+ //| """
297
333
//| ...
298
334
//|
299
335
MATH_FUN_1 (gamma , tgamma )
300
336
301
337
//| def lgamma(x: float) -> float:
302
- //| """Return the natural logarithm of the gamma function of ``x``."""
338
+ //| """Return the natural logarithm of the gamma function of ``x``.
339
+ //|
340
+ //| May not be available on some boards.
341
+ //| """
303
342
//| ...
304
343
//|
305
344
MATH_FUN_1 (lgamma , lgamma )
0 commit comments