public static double Sqr(
double x
)
Public Shared Function Sqr (
x As Double
) As Double
public:
static double Sqr(
double x
)
static member Sqr :
x : float -> float
There is nothing numerically sophisticated inside this function; it exists simply for programmers' convenience. Given a complicated expression that needs to be squared, it is nice to be able to wrap it in a simple call to this function instead of explicitly assigning its value to a new variable and then, in a separate statement, multiplying that variable by itself. Even if you are hyper-vigilant about function call overhead, you should not worry about using this function, because even the most basic optimizing compiler will optimize away the call.