Prev | Next |

@(@\newcommand{\B}[1]{{\bf #1}} \newcommand{\R}[1]{{\rm #1}}@)@

Syntax

Purpose

x

y

fun

Example

*y* = *fun*(*x*)

Evaluate the standard math function

*fun*

where
*fun*

has one argument.
The argument

*x*

can be an instance of `float`

,
an `a_float`

, an `a2float`

, or a `numpy.array`

of such objects.
If

*x*

is an instance of `float`

,
*y*

will also be an instance of `float`

.
Otherwise
*y*

will have the same type as
*x*

.

In the case where
*x*

is an array,
*y*

will
the same shape as
*x*

and the elements of
*y*

will have the same type as the elements of
*x*

.
The function

*fun*

can be any of the following:
`arccos`

,
`arcsin`

,
`arctan`

,
`cos`

,
`cosh`

,
`exp`

,
`log`

,
`log10`

,
`sin`

,
`sinh`

,
`sqrt`

,
`tan`

, or
`tanh`

.
The file std_math.py contains an example and test of these functions.

Input File: pycppad/pycppad.cpp