This code compares scalar and vector AD, and a finite difference approximation. [[Imported from SVN: r9869]]