...
 
Commits (2)
......@@ -63,7 +63,9 @@ magic flux $F=b^2+d^2-a^2-c^2$:
$ef = ac + bd$, and $A = \sqrt{(p-a)(p-b)(p-c)(p-d)}$.
\subsection{Spherical coordinates}
\centerline{\includegraphics[width=25mm]{content/math/sphericalCoordinates}}
\begin{center}
\includegraphics[width=25mm]{content/math/sphericalCoordinates}
\end{center}
\[\begin{array}{cc}
x = r\sin\theta\cos\phi & r = \sqrt{x^2+y^2+z^2}\\
y = r\sin\theta\sin\phi & \theta = \textrm{acos}(z/\sqrt{x^2+y^2+z^2})\\
......
......@@ -3,8 +3,9 @@
* Date: 2019-04-19
* License: CC0
* Source: https://en.wikipedia.org/wiki/Barrett_reduction
* Description: Compute $a \% b$ about 4 times faster than usual, where $b$ is constant but not known at compile time.
* Description: Compute $a \% b$ about 4 times faster than usual, where $a < b^2$ and $b$ is constant but not known at compile time.
* Fails for $b = 1$.
* \vspace{0.5mm}
* Status: proven correct, stress-tested
* Measured as having 3 times lower latency, and 8 times higher throughput.
*/
......