Computational recipes for electromagnetic inverse problems | Synapse