Golden Ratio or Phi (φ, Φ) Symbol in LaTeX
Hello, in this tutorial, we will learn how to write golden ratio constant symbol in LaTeX.
Golden ratio is often mentioned as Phi.
In LaTeX, we can easily write this Golden ration symbol.
\documentclass{article} \usepackage{amsmath} \begin{document} The golden ratio symbol: $\varphi$ = 1.61803 \end{document}
Output:
Here, I have shown another example by creating a new custom command for it.
\documentclass{article} \usepackage{amsmath} \newcommand{\goldenratio}{\varphi} \begin{document} The golden ratio symbol: $\goldenratio$ \end{document}
Output:
Or we can also do this:
\documentclass{article} \usepackage{amsmath} \begin{document} The golden ratio symbol: $\phi$ \end{document}
Output:
If you write the P in capital letter in Phi, then this will look like the below:
\documentclass{article} \usepackage{amsmath} \begin{document} The golden ratio symbol: $\Phi$ \end{document}
Output:
Leave a Reply