logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

inversesqrt - return the inverse of the square root of the parameter

Declaration

genTypeinversesqrt(genTypex);genDTypeinversesqrt(genDTypex);

Description

inversesqrt returns the inverse of the square root of $x$; i.e. the value $1 \over { \sqrt x }$. The
       result is undefined if $x \leq 0$.

Name

       inversesqrt - return the inverse of the square root of the parameter

Parameters

x
           Specify the value of which to take the inverse of the square root.

See Also

pow(), sqrt()

Version Support

       ┌─────────────┬───────────────────────────────────────────────────────────────────────────────────┐
       │             │        OpenGLShadingLanguageVersion                                            │
       ├─────────────┼──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┤
       │ Function1.101.201.301.401.503.304.004.104.204.304.404.50 │
       │ Name        │      │      │      │      │      │      │      │      │      │      │      │      │
       ├─────────────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┤
       │ inversesqrt │  -   │  -   │  ✔   │  ✔   │  ✔   │  ✔   │  ✔   │  ✔   │  ✔   │  ✔   │  ✔   │  ✔   │
       │ (genType)   │      │      │      │      │      │      │      │      │      │      │      │      │
       ├─────────────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┤
       │ inversesqrt │  -   │  -   │  -   │  -   │  -   │  -   │  ✔   │  ✔   │  ✔   │  ✔   │  ✔   │  ✔   │
       │ (genDType)  │      │      │      │      │      │      │      │      │      │      │      │      │
       └─────────────┴──────┴──────┴──────┴──────┴──────┴──────┴──────┴──────┴──────┴──────┴──────┴──────┘

See Also