By leveraging a special hydrogel composite ink, scientists are able to create objects that morph precisely based on mathematical calculations