fn sign1<T: Real>(x: T) -> T
sign(1, x) of Fortran: −1 for negative x, +1 otherwise.
sign(1, x)
−1
x
+1