@Occupant: The challenge has not been to keep the calculations hidden, but to get the end result displayed correctly :)
@jghrist: thanks for a nice looking suggestion, it looks like a good way of doing it, but it still isn't able to display the solution formatted as an equation, is there any...