Effacer les filtres
Effacer les filtres

What is meaning of NaN+NaNi?

43 vues (au cours des 30 derniers jours)
Antony Aravind
Antony Aravind le 18 Juil 2022
Commenté : Andy Globe le 28 Fév 2023
I wrote and run a program, where the output resulted is "NaN+NaNi" . I need to know the meaning of "NaN+NaNi" and thus kindly guide me to correct it.
  1 commentaire
Andy Globe
Andy Globe le 28 Fév 2023
NaN+NaNi is a mathematical notation that represents the result of an undefined operation or calculation involving both real and imaginary numbers. NaN stands for "Not a Number," while NaNi represents "Not a Number" for imaginary numbers. This result typically occurs when performing calculations that result in an infinite or undefined value, such as dividing zero by zero. learn more over building educational app development.

Connectez-vous pour commenter.

Réponses (1)

SlipperyGnome
SlipperyGnome le 18 Juil 2022
MATLAB represents values that are not real or complex numbers with a special value called NaN which means 'Not a Number'. This means you are probably evaluating expressions like 0/0 or inf/inf or so on.
Similarly, when you have a complex number, the displayed values are real numbers + the complex part + 'i'. There must be some invalid expressions usage in the complex part of your program too.
Hope this helps!

Catégories

En savoir plus sur Multidimensional Arrays dans Help Center et File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by