I have a unit vector $u = (x1, y1, z1)$ in $R^3$, given $(x1, y1, z1)$ are known rational numbers.
I need to deterministically pick a unit vector $v = (x2, y2, z2)$, such that $v$ and $u$ are not parallel, so ||${\bf u} \times {\bf v}$|| $\neq 0$.
$x2, y2, z2$ values can likely be derived from $x1, y1, z1$, but I can't figure out how exactly.
If $z1=\pm 1$, then the unit vector is completely determined, $u=(0, 0,\pm 1)$, so you can take $v=(0, \pm 1,0)$ for example. Note that this is an equivalence, $|z1| =1 \Longleftrightarrow x1=y1=0$
If $z1 \neq \pm 1$ then take $v=(-y1, x1, z1) $. The $z$ coordinate in the cross product is $x1^2 +y1^2$ which is different from zero.