With PSTricks. Just for comparison purposes.
PSTricks equivalent for TikZ ({tan(\complement)*\radius},1.5)
is
(+{Tan(\complement)*\radius},1.5)
(**{Tan(\complement)*\radius} 1.5)
\documentclass[pstricks,border=12pt]{standalone}
\usepackage{pst-node}
\def\radius{3}
\def\angle{45}
\def\complement{90-\angle}
\begin{document}
\begin{pspicture}[showgrid](6,3)
\pnode(+{Tan(\complement)*\radius},1.5){P1}
%\pnode(**{Tan(\complement)*\radius} 1.5){P1}
\pscircle*[linecolor=red](P1){2pt}
\end{pspicture}
\end{document}
Miscellaneous
In PSTricks, there are some ways to define a coordinate. It can be expressed in terms of existing nodes or mathematics expressions. With mathematics expression, we have 4 methods as follows.
RPN for both abscissa and ordinate.
For example: (!2 3 mul 1 sub 2 0 add)
is a point (5,2)
.
RPN for abscissa and algebraic for ordinate. The ordinate can be a function of x
.
For example: (*{2 3 add} {x-3})
is a point (5,2)
.
Algebraic for abscissa and RPN for ordinate. The abscissa can be a function of y
.
For example: (**{y*3-1} {1 1 add})
is a point (5,2)
.
Algebraic for both abscissa and ordinate.
For example: (+{3+2},1+1)
is a point (5,2)
.
The following example uses \def
to express algebraic expression as a function of x
, y
or a constant.
\documentclass[pstricks,border=12pt]{standalone}
\usepackage{pst-node}
\def\f[#1]{2*#1-1}
\begin{document}
\begin{pspicture}[showgrid](4,3)
\pscircle*[linecolor=red](+{\f[2],\f[1]}){2pt}% its center is (3,1)
\pscircle*[linecolor=green](*{1 0 add} {\f[x]}){2pt}% its center is (1,1)
\pscircle*[linecolor=blue](**{\f[y]} {2 0 add}){2pt}% its center is (3,2)
\end{pspicture}
\end{document}
Tikz
cannot recognize a calculation from a point({tan(\angleg)*\focale},1.5cm)
.