The sum function will return a NaN if any of the element in the input vector is NaN.
The sum function will return a NaN if any of the element in the input vector is NaN. Correct Answer False
We can write ‘omitNaN’ within the sum function so that while computing sum, the function ignores every NaN element present within the input vector. Eg: A=;sum(A,’omitNaN’)- This will return 3 as answer.
মোঃ আরিফুল ইসলাম
Feb 20, 2025