I am new to learning LaTeX, and I am using WinEdt 10 as the editor. I have an encountered a problem when trying to draw a right angle triangle of sides 40,30 and 50.
I am using picture environment for this exercise. So, I start off at the origin, and make a straight line of length 40. From there (i.e. the point (40,0)) I construct another line, perpendicular to this, of length 30. Now, to join the origin with the point (40,30), I draw a line along the vector (4,3), of length 50. This is where the trouble comes. The line of length 50 is too long to make the hypotenuse, while it is perfect when I make the length 40. I can't seem to understand why that is.
Here is the syntax I use :
\documentclass{article}
\begin{document}
\begin{picture}(250,75)
\put(0,0){\line(1,0){40}}
\put(40,0){\line(0,1){30}}
\put(0,0){\line(4,3){40}}
\end{picture}
\end{document}