Add a coe2 function.
Merge pull request #1 from msullivan/master

Add a coe2 function.