You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 5, 2025. It is now read-only.
Joe McCain III edited this page Apr 9, 2024
·
2 revisions
Examples
Basic Expressions
externcrate acme;use acme::autodiff;fnmain(){let(x, y) = (1f64,2f64);assert_eq!(autodiff!(x: x + y),1f64);assert_eq!(autodiff!(x: x * y), y);assert_eq!(autodiff!(y: x * y), x);assert_eq!(autodiff!(x: x - y),1f64);assert_eq!(autodiff!(y: x - y), -1f64);}