Fuze Arena Logo
  • Forum
  • Creations
    Catalogue Showcase
  • Help

rsqrt()

Purpose

Find the fast inverse square root of the specfied number

Description

Returns the reciprocal (or multiplicative inverse) of the square root of a number. This operation is used in digital signal processing to normalize a vector (scale it to length 1.) e.g. in computer graphics inverse square roots are used to compute angles of incidence and reflection for lighting and shading.

Syntax

result = rsqrt( number )

Arguments

number The number to find the reciprocal square root of

result The reciprocal square root (1/square root) of the number

Example

num = 10
print( rsqrt( num ) )
update()
sleep( 3 )

Associated Commands

pow(), sqrt()

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.