MATLAB BUILDER JA 2 Guida Utente Pagina 149

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 292
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 148
Using Class Methods
Input Parameters
value
double
valuetotestforfiniteness
Example Testing for Finite Array Values
Test x for finiteness:
double x = 25;
if (MWNumericArray.isFinite(x))
System.out.println("The input value is finite");
When run, the example displays this output:
The input value is finite
isInf. This method tests for infinity in a machine-independent manner. This
is a static method o f the class and does not need to be invoked in reference
to an instance of the class.
The prototype for the
isInf method is as fo llow s:
public static boolean isInf(double value)
Input Parameters
value
double
value to test for infinity
Example Testing for Infinite Array Values
4-73
Vedere la pagina 148
1 2 ... 144 145 146 147 148 149 150 151 152 153 154 ... 291 292

Commenti su questo manuale

Nessun commento