Fixed bug with negative numbers in cos, sin etc.
Report modified.