Fuze Arena Logo
  • Forum
  • Creations
    Catalogue Showcase
  • Help

sqrt()

Purpose

Find the square root of the specfied number

Description

The mathematical square root function which is the number which when multiplied by itself will give you the specfied number. If you try to find the square root of a negative number it will return nan (not a number)

Syntax

result = sqrt( number )

Arguments

number number to find the square root of

result square root of the number

Example

// Pythagoras: for a right angled triangle with side lengths a,b and c (where c is the longest side) a*a + b*b = c*c
a = 3
b = 4
c = sqrt( a * a + b * b )
print( "c = ", c )
update()
sleep( 3 )

Associated Commands

pow(), rsqrt()

logo

©2019 FUZE Technologies Ltd. FUZE is a registered trademark of FUZE Technologies Ltd. All rights reserved.

Useful links

  • Fuze Main Site
  • Fuze Arena on Twitter
  • Fuze Arena on Youtube
  • Download Buyer

Contact Information

  • FUZE Technologies Ltd
    15 Clearfields Farm
    Wotton Underwood
    Aylesbury, Buckinghamshire
    ​England, HP18 0RS

  • +44 (0) 1844 239 432

  • contact@fuze.co.uk

© Copyright FUZE Technologies Ltd. All rights reserved.