VMS Help
RTL Routines, LIB$, LIB$POLYH
*Conan The Librarian (sorry for the slow response - running on an old VAX)
|
|
On OpenVMS VAX systems, the Evaluate Polynomials routine (H-
floating values) allows higher-level language users to evaluate
H-floating value polynomials.
This routine is not available to native OpenVMS Alpha programs
but is available to translated VAX images.
Format
LIB$POLYH polynomial-argument ,degree ,coefficient
,floating-point-result
OpenVMS usage:cond_value
type: longword (unsigned)
access: write only
mechanism: by value
polynomial-argument
OpenVMS usage:floating_point
type: H_floating
access: read only
mechanism: by reference
Argument for the polynomial. The polynomial-argument argument
is the address of a floating-point number that contains this
argument. The polynomial-argument argument is an H-floating
number.
degree
OpenVMS usage:word_signed
type: word integer (signed)
access: read only
mechanism: by reference
Highest-numbered nonzero coefficient to participate in the
evaluation. The degree argument is the address of a signed word
integer that contains this highest-numbered coefficient.
If the degree is 0, the result equals C[0]. The range of the
degree is 0 to 31.
coefficient
OpenVMS usage:floating_point
type: H_floating
access: read only
mechanism: by reference, array reference
Floating-point coefficients. The coefficient argument is
the address of an array of floating-point coefficients. The
coefficient of the highest-order term of the polynomial is the
lowest addressed element in the array. The coefficient argument
is an array of H-floating numbers.
floating-point-result
OpenVMS usage:floating_point
type: H_floating
access: write only
mechanism: by reference
Result of the calculation. The floating-point-result argument is
the address of a floating-point number that contains this result.
LIB$POLYH writes the address of floating-point-result into an
H-floating number.
Intermediate multiplications are carried out using extended
floating-point fractions (127 bits for POLYH).
[legal]
[privacy]
[GNU]
[policy]
[netiquette]
[sponsors]
[FAQ]
Polarhome, production since 1999.
Member of Polarhome portal.