calculate linearity uncertainty find linearity uncertainty