1 -- File: GeomLib_PolyFunc.cdl
2 -- Created: Tue Sep 22 16:24:52 1998
3 -- Author: Philippe MANGINGeomLib_PolyFunc.c
5 ---Copyright: Matra Datavision 1998
8 private class PolyFunc from GeomLib inherits FunctionWithDerivative from math
10 ---Purpose: Polynomial Function
17 Create(Coeffs:Vector) returns PolyFunc from GeomLib;
19 Value(me: in out; X: Real; F: out Real)
20 ---Purpose: computes the value <F>of the function for the variable <X>.
21 -- Returns True if the calculation were successfully done,
27 Derivative(me: in out; X: Real; D: out Real)
28 ---Purpose: computes the derivative <D> of the function
29 -- for the variable <X>.
30 -- Returns True if the calculation were successfully done,
36 Values(me: in out; X: Real; F, D: out Real)
37 ---Purpose: computes the value <F> and the derivative <D> of the
38 -- function for the variable <X>.
39 -- Returns True if the calculation were successfully done,