It is possible to define coordinates using trigonometric ratios with the construction of a geometric figure, as in the attached example but it does not work for me.



    \draw (0,0) -- (1,3);
    \draw (0,0) -- ({cos(30)},{tan(45)});

  • 5
    Try ({cos(30)},{tan(45)}); (you have to protect the inner parentheses by wrapping the x and y coordinate in braces). – Henri Menke Nov 15 '18 at 4:46
  • unfortunately the segment does not produce. – Samuel Diaz Nov 15 '18 at 4:57
  • 2
    @SamuelDiaz: Are you saying that Henri Menke's suggestion did not work for you? Seems to work fine for me, so please elaborate if it did not work for you. – Peter Grill Nov 15 '18 at 6:51
  • Correct, my code had an error, it works. thanks to @Henri Menke and Peter Grill – Samuel Diaz Nov 15 '18 at 12:57
  • @HenriMenke Care to write up an answer? – Troy Dec 26 '18 at 3:08

Browse other questions tagged or ask your own question.