sq() \ Language (API) \ Wiring ALPHA 1.0
Author: Hernando Barragán
Description: Wiring is an electronic sketchbook and hardware electronics for developing ideas. It is a context for learning fundamentals of computer programming and prototyping with electronics within the context of the electronic arts.
Keywords: Wiring, Processing, Interactive Media, Electronic Arts, Programming, C, C++, Hernando Barragán

Search wiring.org.co:

Reference for Wiring version 0023+. If you have a previous version, use the reference included with your software. If you see any errors or have any comments, let us know.

Name | ### sq()
Examples |
    float a = sq(1);   // Sets a to 1
    float b = sq(-5);  // Sets b to 25
    float c = sq(9);   // Sets c to 81
Description | Squares a number (multiplies a number by itself). The result is always a positive number, as multiplying two negative numbers always yields a positive result. For example, -1 * -1 = 1.
Syntax |
    sq(value)
Parameters |
value | int or float
Returns | float
Usage | Application
Related | sqrt()

Updated on November 01, 2009 11:47:26pm PST