Metamaterials can be manipulated so that if light is shined through layers of them, a complicated math equation can be solved.