Pergunta de entrevista da empresa Rockwell Automation

A HW engineer asked how to code a "SINE FUNCTION" without library call.