필터 지우기
필터 지우기

What is meaning of NaN+NaNi?

조회 수: 42 (최근 30일)
Antony Aravind
Antony Aravind 2022년 7월 18일
댓글: Andy Globe 2023년 2월 28일
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
Andy Globe
Andy Globe 2023년 2월 28일
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.

댓글을 달려면 로그인하십시오.

답변 (1개)

SlipperyGnome
SlipperyGnome 2022년 7월 18일
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!

카테고리

Help CenterFile Exchange에서 Multidimensional Arrays에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by