Re: formule lunghe

#87831
robitex
Amministratore del forum
    Up
    0
    Down
    ::

    pinturicchia” post=87263Salve a tutti,
    chiedo il vostro aiuto per un problema che ho con l’ inserimento di foemule lunghe in un testo di stile book.
    Su “l’arte” ho trovato le seguenti indicazioni:
    \begin{equation}
    \begin{split}
    \Delta (\textbf{b})& = \sum_{i=1}^{n}(y_{i} – y_{i}^{*})^{2} = \sum_{i=1}^{n}e_{i}^{2} = \\
    &= \textbf{$e^{T}e$} =(\textbf{y} – \textbf{$Xb$})^{T} (y – \textbf{Xb}) =\\
    &= \textbf{$y^{t}y – b^{T}X^{T}y – y^{T}Xb + b^{T}X^{T}Xb$} = \\
    &= \textbf{$y^{T}y$} – 2\textbf{$b^{T}X^{t}y$} + \textbf{$b^{T}X^{T}Xb$}
    \end{split}
    \end{equation}

    ma ciò produce il seguente errore:
    \begin{split}
    your command was ignored

    spero che qualcuno possa aiutarmi.
    Grazie

    Questo codice non mi da nessun errore:
    `\documentclass{book}
    \usepackage{amsmath}

    \begin{document}

    \begin{equation}
    \begin{split}
    \Delta (\textbf{b})& = \sum_{i=1}^{n}(y_{i} – y_{i}^{*})^{2} = \sum_{i=1}^{n}e_{i}^{2} = \\
    &= \textbf{$e^{T}e$} =(\textbf{y} – \textbf{$Xb$})^{T} (y – \textbf{Xb}) =\\
    &= \textbf{$y^{t}y – b^{T}X^{T}y – y^{T}Xb + b^{T}X^{T}Xb$} = \\
    &= \textbf{$y^{T}y$} – 2\textbf{$b^{T}X^{t}y$} + \textbf{$b^{T}X^{T}Xb$}
    \end{split}
    \end{equation}

    \end{document}`

    Inoltre ti consiglio di non usare \textbf (sezione 14.5.8 della Guida GuIT scaricabile dalla sezione doc del sito…).
    R.

    Go to top