Inverse-designed metastructures that solve equations | Synapse