Tangle is an interesting javascript library for mixing calculations into text. It permits interactive calculations, with dragging on parameters to vary the outcome. If I can figure out how to run javascript in WordPress quickly I’ll demo it, but in the meantime, check it out: