Saltar al contenido principal
LibreTexts Español

10.1: Errores absolutos y relativos

  • Page ID
    113282
  • \( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)

    \( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)

    \( \newcommand{\id}{\mathrm{id}}\) \( \newcommand{\Span}{\mathrm{span}}\)

    ( \newcommand{\kernel}{\mathrm{null}\,}\) \( \newcommand{\range}{\mathrm{range}\,}\)

    \( \newcommand{\RealPart}{\mathrm{Re}}\) \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\)

    \( \newcommand{\Argument}{\mathrm{Arg}}\) \( \newcommand{\norm}[1]{\| #1 \|}\)

    \( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\)

    \( \newcommand{\Span}{\mathrm{span}}\)

    \( \newcommand{\id}{\mathrm{id}}\)

    \( \newcommand{\Span}{\mathrm{span}}\)

    \( \newcommand{\kernel}{\mathrm{null}\,}\)

    \( \newcommand{\range}{\mathrm{range}\,}\)

    \( \newcommand{\RealPart}{\mathrm{Re}}\)

    \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\)

    \( \newcommand{\Argument}{\mathrm{Arg}}\)

    \( \newcommand{\norm}[1]{\| #1 \|}\)

    \( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\)

    \( \newcommand{\Span}{\mathrm{span}}\) \( \newcommand{\AA}{\unicode[.8,0]{x212B}}\)

    \( \newcommand{\vectorA}[1]{\vec{#1}}      % arrow\)

    \( \newcommand{\vectorAt}[1]{\vec{\text{#1}}}      % arrow\)

    \( \newcommand{\vectorB}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)

    \( \newcommand{\vectorC}[1]{\textbf{#1}} \)

    \( \newcommand{\vectorD}[1]{\overrightarrow{#1}} \)

    \( \newcommand{\vectorDt}[1]{\overrightarrow{\text{#1}}} \)

    \( \newcommand{\vectE}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash{\mathbf {#1}}}} \)

    \( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)

    \( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)

    Considera un algoritmo que intenta encontrar el valor de\(x^{\star}\). Si el algoritmo realmente devuelve el valor $x$, entonces habrá algún error. El error absoluto es\[|x - x^{\star}|\]

    y el error relativo es\[\left|\frac{x-x^{\star}}{x^{\star}}\right|.\]

    A menudo, el porcentaje de error también es útil, que es solo el error relativo multiplicado por 100.

    Ejemplo

    Considera un algoritmo que devuelve\(x=0.0153\) y la respuesta real es\(x^{\star}=0.0150\). Encuentra tanto los errores absolutos como los relativos.

     

    El error absoluto es\(|0.0153-0.015|= 0.0003\) y el error relativo es\[\left|\frac{0.0153-0.015}{0.015}\right|=0.02\] o 2\%.

    Podemos hacer esto es julia de la siguiente manera. Aquí está el error absoluto:

    xstar = 0.0150;
    x = 0.0153
    abs(x-xstar)
    0.0002999999999999999

     

    y el error relativo es

    xstar = 0.0150;
    x = 0.0153
    abs((x-xstar)/xstar)
    0.019999999999999997

    que son los mismos resultados que los anteriores.

    Ejercicio

    Encuentra el error relativo, absoluto y porcentual si\(x^{\star} = 130.32\) y\(x=130\).

    # fill in code here.
     

    This page titled 10.1: Errores absolutos y relativos is shared under a not declared license and was authored, remixed, and/or curated by Peter Staab.