Make calculate more robust

Also trimmed superfluous doctest tracebacks
Make alien_eval more robust