Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Problem 1406. Generate a NaN...on purpose

Created by Michael C.

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!

Tags

Problem Group

Solution Statistics

131 correct solutions 64 incorrect solutions
Last solution submitted on Apr 01, 2014

Problem Comments