I'm currently programming a domain problem for college algebra in which the answer has a fraction as an endpoint. In particular, the answer is
(-inf,0)U(0,1/$b)U(1/$b,inf)
where $b is a positive integer. I am wondering two things:
- Is it possible to have the correct answer display the fraction rather than a decimal? I know this is not usually a big deal, but for college algebra we would rather have the correct answer display with the fractions when they print out the homework set. Plus, it would help in displaying the interval in the solution since I don't want the decimals to display (I wouldn't have to create a new variable $ddomain for the tex of it).
- Even further, is it possible to force reduced fractions for the endpoints of the interval? Looking at the way that the interval context is set up, I don't see an obvious way of doing this, but maybe someone knows? I know this is probably related in someway with my previous post of fractions in lists.
I would greatly appreciate any input on these two questions!
Thanks!!
Rick