MATLAB APPLICATION DEPLOYMENT - WEB EXAMPLE GUIDE Guide de l'utilisateur Page 347

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 354
  • Table des matières
  • DEPANNAGE
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 346
static bool IsInf(double x)
Purpose Test if valu e is infinite and return true if value is infinite
C++
Syntax
#include "mclcppclass. h"
bool x = mwArray::IsInf(1. 0); // Returns false
Arguments Value to test for infinity
Return
Value
Result of test.
Description Call mwArray::IsInf to determine whether or not a value is equal to
infinity or minus infinity. MATLAB stores the value of infinity in a
permanent variable named
Inf, w hich represents IEEE arithmetic
positive infinity. The value of the variable,
Inf, is built into the system;
you cannot modify it.
Operation s that return infinity include
Division by 0. For example, 5/0 returns infinity.
Operations resulting in overflow. For example,
exp(10000) returns
infinity because the result is too large to be represented on your
machine. If the value equals
NaN ( Not-a-Number), then mxIsInf
returns false .Inotherwords,Na N is not equal to infinity.
C-93
Vue de la page 346

Commentaires sur ces manuels

Pas de commentaire