I am making a tool where the user is shown this triangle throughout the process:
:draw
echo ^|\
echo ^|a\
echo ^| \
echo ^| \
echo ^| \ C
echo A^| \
echo ^| \
echo ^| \
echo ^|c b\
echo ^|---------\
echo B
GOTO:EOF
Where any letters are, there are variables. First the users chooses which angle value they have. Then they choose a side value. After that, all of the values will automatically be filled in. In my source code I just have sin(a) or something similar as a placeholder until I can find the trig functions (sin, cos, tan) and squareroot in native batch.
You may use a table (array really) to map the input value (degrees) into the sin of the value multiplied by a common factor, so you may achieve aritmethic operations with such intermediate result. For example:
You may use the same method to get the result of any other function, or you may use an iterative method to calculate the square root.
Edit: Square root function added.
For example: