Документ взят из кэша поисковой машины. Адрес
оригинального документа
: http://www.stsci.edu/~sontag/spicedocs/cspice/mind_c.html
Дата изменения: Sat Dec 17 06:09:19 2005 Дата индексирования: Sun Apr 10 22:52:07 2016 Кодировка: Поисковые слова: http www.astronomy.ru forum index.php topic 4644.0.html |
Find the minimum of a set of double precision values.
PLANES
Variable I/O Description -------- --- -------------------------------------------------- n I The number of double precision values to compare. ... I The numbers to be compared, separated by commas.
n is the number of double precision values in the set whose minimum is to be determined. ... represents a variable argument list. The number of double precision values supplied must be that indicated by n. The values are separated by commas. Section 5.2.4.1 of the ANSI C Standard, titled "Translation Limits," specifies that argument lists containing at least 31 items must be supported. In the interest of portability, no more than 30 double precision values should be supplied.
The function returns the minimum of the set of input double precision values.
None.
1) Find the minimum of four double precision values. #include "SpiceUsr.h" . . . SpiceDouble min; SpiceDouble a; SpiceDouble b; SpiceDouble c; SpiceDouble d; . . . min = mind_c ( 4, a, b, c, d );
1) The ANSI C Standard specifies that argument lists containing 31 actual arguments must be supported. Larger sets of values may not be handled properly by this routine.
Error free. 1) If n is less than 1, the value 0.0 is returned. 2) If the number of double precision values supplied does not match the argument n, the action of this routine is not defined. 3) If the number of double precision values supplied exceeds 30, the action of this routine is not defined.
None.
N.J. Bachman (JPL)
1) "American National Standard for Programming Languages---C." Section 5.4.2.1, "Translation Limits," p. 13. Published by American National Standards Institute, 11 West 42nd St., New York, NY 10035. Copyright 1990.
-CSPICE Version 1.0.0, 16-SEP-1999 (NJB)
minimum of double precision values