Thank you Alex for your suggestion! I was able to implement it into my code.
WeBWorK Main Forum
Rendering output of trigonometric functions as fractions
This forum has a limit to the number of forum postings you can make in a given time period - this is currently set at 10 posting(s) in 1 day