Step 1:Choose an angle:

Step2:You can resize the triangle using point A or B.

angle = 0.7853981633974483 rad (slider from 0° to 90°, step 15°)
A = (-7.1, -2.99)
B = Point(yAxis)
c = Segment(A, B)
g = OrthogonalLine(B, c)
B' = Rotate(B, angle, A)
α = Angle(B, A, B')
h = Ray(A, B')
C_1 = Intersect(g, yAxis)
C = Intersect(h, g)
b = Segment(A, C)
a = Segment(C, B)
sinvalue: a / b
cosvalue: c / b
tanvalue: a / c
text1: "Sinα=\frac{opposite}{hypotenuse}=\frac{" + (LaTeX[a]) + "}{" + (LaTeX[b]) + "} = " + (LaTeX[sinvalue]) + ""
β = Angle(C, B, A)
text2: "Cosα=\frac{adjacent}{hypotenuse}=\frac{" + (LaTeX[c]) + "}{" + (LaTeX[b]) + "}=" + (LaTeX[cosvalue]) + ""
text3: "Tanα=\frac{opposite}{adjacent}=\frac{" + (LaTeX[a]) + "}{" + (LaTeX[c]) + "}=" + (LaTeX[tanvalue]) + ""