Archive.png This article or section documents something not included in the current version of Scratch (3.0). It is only useful from a historical perspective. For information on the feature that replaced this one, see () of () (Operators block).
sqrt ()
(sqrt ():: operators)
Category Numbers
Type Reporter
Introduced in 04Apr05i (0.x)
Removed in 04Oct05 (0.x)

The sqrt () block was a Numbers block (the former name of operators blocks) and a Reporter block. The block reported the square root of the argument. It was removed from Scratch in 04Oct05 for an unknown reason.

The square root of a value can be defined as a number which produces the initial value when multiplied by itself. For example, the square root of 9 is three because .

Workaround

Main article: List of Block Workarounds

This block can be replicated by using Heron's method for computing square roots:

set [result v] to [1]
repeat (25)
    set [result v] to (((result) + ((x) / (result))) / (2))
end

It can also be replicated with the block that replaced it.

([sqrt v] of ())

See Also