forked opengamma math for comparison against