新错误

新错误
## [16]
! Double superscript.
l.44 x[n]=A*e^{-^
                \delta ^n}*cos(2\pi f_0n-\phi)
?  ##

我的代码:


\begin{equation}\label{Exponential }
x[n]=A*e^{-^\delta ^n}*cos(2\pi f_0 n-\phi)
\end{equation}

 -

新错误

: ! Missing \endcsname inserted. <to be read again> 
                       \protect l.17 ...trization in Time Domain}{equation.3.1}{}}

    ? 

我的文件:

    \documentclass[12pt,listof=totoc,bibliography=totoc,numbers=noenddot]{scrartcl}  Standard-Layout f�r das Dokument
    \usepackage{lmodern} 
    \parindent0pt 
    \usepackage[a4paper, left=3cm, right=2cm, top=2.5cm, bottom=2cm]{geometry}
    \renewcommand{\baselinestretch}{1.20}\normalsize 



    \usepackage[utf8]{inputenc}
    \usepackage[T1]{fontenc} 
    \usepackage[ngerman,english]{babel} 
    \usepackage{textcomp} 


    \usepackage[intlimits]{amsmath} 
    \usepackage{mathrsfs,amssymb} 
    \usepackage{icomma} 
    \usepackage{mathtools} 
    \usepackage{theorem} 
    \numberwithin{equation}{section} 
    \usepackage{commath} 
    \usepackage{bm} 


    \usepackage[svgnames]{xcolor} 
    \definecolor{dunkelblau}{rgb}{0,0,0.5} 
    \definecolor{americanrose}{rgb}{1.0, 0.01, 0.24}
    \definecolor{babyblue}{rgb}{0.54, 0.81, 0.94}
    \definecolor{mygreen}{rgb}{0,0.6,0}
    \definecolor{mygray}{rgb}{0.5,0.5,0.5}
    \definecolor{mymauve}{rgb}{0.58,0,0.82}
    \definecolor{cerulean}{rgb}{0.0, 0.48, 0.65}

    \numberwithin{figure}{section} 

    \usepackage{subfig} 
    \usepackage{graphicx} 


    \usepackage[automark]{scrpage2} 
    \pagestyle{scrheadings} 
    \clearscrheadfoot
    \ihead[]{\headmark} 
    \ohead[]{\pagemark} 
    \cfoot[\pagemark]{}
    \setheadsepline{0.4pt} 
    \setlength{\headheight}{1 cm}
    \setlength{\footskip}{1 cm}

    %++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    %Zus�tzliche Pakete
    %++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

    \usepackage[colorlinks=false,plainpages=false,pdfpagelabels]{hyperref} 

    \usepackage{pdfpages} 
    \usepackage{listings} 
    \usepackage[square,numbers,comma, sort & compress]{natbib}
    \usepackage{leftidx} 
    \renewcommand{\lstlistingname}{Quellcode} 

    \numberwithin{table}{section} 



    \DeclareOldFontCommand{\rm}{\normalfont\rmfamily}{\mathrm}
    \DeclareOldFontCommand{\sf}{\normalfont\sffamily}{\mathsf}
    \DeclareOldFontCommand{\tt}{\normalfont\ttfamily}{\mathtt}
    \DeclareOldFontCommand{\bf}{\normalfont\bfseries}{\mathbf}
    \DeclareOldFontCommand{\it}{\normalfont\itshape}{\mathit}
    \DeclareOldFontCommand{\sl}{\normalfont\slshape}{\@nomath\sl}
    \DeclareOldFontCommand{\sc}{\normalfont\scshape}{\@nomath\sc}
    \DeclareRobustCommand*\cal{\@fontswitch\relax\mathcal}
    \DeclareRobustCommand*\mit{\@fontswitch\relax\mathnormal}
    \usepackage{epigraph}

    \begin{document}
    \begin{equation}
    \label{Exponential decaying }
    x[n]=A*e^{-\delta n}*cos(2\pi f_0 n-\phi)
    %x\left [ n \right ]=A*e^{-\delta n}*cos(2\pi f_0 n-\phi)
    \end{equation}

    Where,\\
    \begin{align}
    A: Amplitude\\
    %
    \delta: Exponential decaying constant\\
    %
    f_0:frequency [Hz]\\
    %
    \omega_0: 2\pi f_0 [rad/sec]\\
    %
    \phi: Phase [rad]\\
    %
    n: Number of samples\\
    \end{align}
    Similarly, in Continuous time
    \begin{equation}\label{Exponen}
    x(c)=A*e^{-\delta c}*cos(2\pi f_0 t-\phi)
    \end{equation}

    Where,\\

    \begin{align}
    A: Amplitudii\\
    %
    \omez_0: 2\\\
    %
    \phi: Phas\\
    %
    c: Contin\\
    %
    T: Sampli
    \end{align}
\end{document}

答案1

您显示的错误消息不是由您发布的代码生成的,并且看起来很奇怪,因为它在报告错误第一的上标。

错误在第二个上标上,应该是这样的

! Double superscript.
l.6 x[n]=A*e^{-^\delta ^
                        n}*cos(2\pi f_0 n-\phi)
? 

- 号有两个上标,但我认为您根本不想将其上标:

\documentclass{article}

\begin{document}

\begin{equation}\label{Exponential }
x[n]=A*e^{-\delta n}*\cos(2\pi f_0 n-\phi)
\end{equation}
\end{document}

注意\cos不是cos(我通常也不会用*它来做乘法)

相关内容