Avatar
Avatar
omochimetaru
@swift-5.6.3 -Xfrontend -enable-experimental-forward-mode-differentiation import _Differentiation @differentiable(reverse) func f(_ x: Float) -> Float { x * x } let dfdx = derivative(of: f) print(dfdx(3))
swift56 BOT 6/3/2022 3:12 AM
6.0