The role of mathematics in the didactic experiment