(Macro) computes the square of a number.
Parameters¶a: the number.
Returns¶a squared (a à a).
Warning¶Because of the way sq() is implemented, avoid using other functions or causing side effects inside the parentheses, as it may lead to incorrect results:
b = sq(a++); // avoid this - yields incorrect results b = sq(a); // use this instead - a++; // keep other operations outside sq()Arduino Compatibility¶
Maple’s implementation of sq() is compatible with Arduino.
© Copyright 2010, 2011, LeafLabs, LLC. Last updated on Jan 15, 2014. Created using
Sphinx1.1.3.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4