MATLAB BUILDER JA 2 Betriebsanweisung Seite 149

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 292
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 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
Seitenansicht 148
1 2 ... 144 145 146 147 148 149 150 151 152 153 154 ... 291 292

Kommentare zu diesen Handbüchern

Keine Kommentare