Name | sqrt() |
||
---|---|---|---|
Examples |
noStroke() a = sqrt(6561) # Sets 'a' to 81 b = sqrt(625) # Sets 'b' to 25 c = sqrt(1) # Sets 'c' to 1 rect(0, 25, a, 10) rect(0, 45, b, 10) rect(0, 65, c, 10) | ||
Description | Calculates the square root of a number. The square root of a number is always positive, even though there may be a valid negative root. The square root s of number a is such that s*s = a. It is the opposite of squaring. | ||
Syntax | sqrt(n) | ||
Parameters |
| ||
Related |
sqrt() |
Updated on Mon Sep 21 15:53:25 2020.
If you see any errors or have comments, please let us know.
This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License