[Flash MX] how draw sine and other functions using the drawing api

how draw sine and other functions using the drawing api ?
so far all my efforts have yielded amazing random designs but not the desired functions.
so somebody pls help !