Female physicists, astronomers and mathematicians are up against more than 2,000 years of convention that has long portrayed these fields as inherently male.