Maths app helps manage polymer recipes