The goal is to create a function that will return a single "NaN" without using the nan function. I am interested to see how many different ways this can be done, so be creative and submit more than one solution if you have lots of ideas!
Nice test suite
I really really want to know that how many methods to gain NaN up to now.
Right and wrong
Stuff the Board
Generate N equally spaced intervals between -L and L
The sum of the numbers in the vector
length of a vector
Big numbers, repeated least significant digits
Big numbers, least significant digits
Given the name from the legend, return the handle
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Contact your local office