You could also solve this algebraically as follows. Knowing that tan θ = sinθ/cosθ we can write:
cosθ - sinθ/cosθ = 0
Multiply through by cosθ
cos2θ - sinθ = 0
Also, cos2θ = 1 - sin2θ so
1 - sin2θ - sinθ = 0
Rearrange:
sin2θ + sinθ - 1 = 0
This is a quadratic in sinθ with solutions -(1-√5)/2 and -(1+√5)/2. The second result is not a valid solution because it is outside the range ±1.
So taking the arcsine of the other result we get
$$\underset{\,\,\,\,^{\textcolor[rgb]{0.66,0.66,0.66}{360^\circ}}}{{sin}}^{\!\!\mathtt{-1}}{\left({\mathtt{\,-\,}}{\frac{\left({\mathtt{1}}{\mathtt{\,-\,}}{\sqrt{{\mathtt{5}}}}\right)}{{\mathtt{2}}}}\right)} = {\mathtt{38.172\: \!707\: \!627\: \!012^{\circ}}}$$
There is another value at 180°-38.173° = 141.827°
.