Abstract In this paper, a novel strategy based on metasurface composed of simple and compact unit cells to achieve ultra-high-speed trigonometric operations under specific input values is theoretically experimentally demonstrated. An electromagnetic wave (EM)-based optical diffractive neural network with only one hidden layer physically built perform four (sine, cosine, tangent, cotangent funct...