A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://docs.leaflabs.com/static.leaflabs.com/pub/leaflabs/maple-docs/latest/lang/api/sq.html below:

sq() — Maple v0.0.12 Documentation

sq()¶

(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

Sphinx

1.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