Compared to a lot of things, producing a computer implementation of trig functions at the time could have been really useful. A well implemented library can justify itself by saving a lot of people a little time. And, given the era, the guy would probably be partially inventing the whole idea of doing the thing on the computer.
But nukes were also a pretty high priority.