MATLAB BUILDER JA 2 Podręcznik Użytkownika Strona 149

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 292
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 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
Przeglądanie stron 148
1 2 ... 144 145 146 147 148 149 150 151 152 153 154 ... 291 292

Komentarze do niniejszej Instrukcji

Brak uwag