Template:R from mathematical expression