add scalar case using division instead of multiplying by inverse in tan_invalid if using x87