Non-existing sq() function

The documentation references the 'sq' function but online, this function is not in the index, and offline (at least on OSX) the documentation for it is non-existing neither is it in the index.

I suspect it is omitted because it is such a trivial thing to implement oneself.

You do not need it implement by yourself, of course, both compile with 1.0.1 fine: float x, y; x = 123.456; y = sqrt(x); Serial.println(y); y = sq(y); Serial.println(y);

If it doesn’t exist for you, you can add it by including this line at the top of your sketch:

#define sq(x) ((x)*(x))

That is all it is defined as in the Arduino.h file of Arduino 1.0.1