Page
Library
Module
Module type
Parameter
Class
Class type
Source
Tadiff.OrderedTTypeName
SourceExtends TTypeName
with comparison operators.
module T : sig ... end
Type of values: this is the type that the user should use with make
and that will be returned by get
un_op op f
builds a node that represents the expression op(f)
where op
is a unary operator. This is useful to write custom operators
bin_op op f1 f2
builds a node that represents the expression op(f1,f2)
where op
is a binary operator. This is useful to write custom operators
set f i v
sets the i
-th coefficient of f
to v
, this is used to set the direction of the expansion. For example, to expand wrt. a variable x, one would call set x 1 1.
. This can also be used to change the value of a variable: eg. set x 0 5.
.
d f i
retrieves the coefficient of order i
in computation f
as an elt
. Must be called after eval
.
deriv f i
retrieves the coefficient of order i
in computation f
. Must be called after eval
.
get_tvalues f
retrieves the array of taylor coefficients of f
. Must be called after eval
.
get_derivatives f
retrieves the array of derivatives of f
. Must be called after eval
.
eval f i
propagates the first i
taylor coefficients of f. The direction of the expansion should have been set using set
.