<?xml version="1.0" encoding="utf-8" standalone="no"?>
<!DOCTYPE document PUBLIC "-//CNX//DTD CNXML 0.5 plus MathML//EN" "http://cnx.rice.edu/cnxml/0.5/DTD/cnxml_mathml.dtd">
<document xmlns="http://cnx.rice.edu/cnxml" xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" id="m11527">
  <name xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/">Discrete vs Analog</name>
  <metadata xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/">
  <md:version xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/">1.10</md:version>
  <md:created xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/">2003/07/25 14:46:24 GMT-5</md:created>
  <md:revised xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/">2003/11/06 14:35:16.163 US/Central</md:revised>
  <md:authorlist xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/">
    <md:author xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" id="Anders">
      <md:firstname xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/">Anders</md:firstname>
      
      <md:surname xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/">Gjendemsjo</md:surname>
      <md:email xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/">gjendems@NO-SPAM.tele.ntnu.no</md:email>
    </md:author>
  </md:authorlist>

  <md:maintainerlist xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/">
    <md:maintainer xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" id="Anders">
      <md:firstname xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/">Anders</md:firstname>
      
      <md:surname xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/">Gjendemsjo</md:surname>
      <md:email xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/">gjendems@NO-SPAM.tele.ntnu.no</md:email>
    </md:maintainer>
  </md:maintainerlist>
  
  

  <md:abstract xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/"/>
</metadata>

    <content xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/">

    <para xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" id="s0p1">
	When comparing analog vs discrete time, we find that there
	are many similarities. Often we only need to substitute the varible
	t with n and integration with summation. Still there are some
	important differences that we need to know.
	As the complex exponential signal is truly central to signal processing
	we will study that in more detail.
    </para>
    <section xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" id="s1">
	<name xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/">Analog</name>
	<para xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" id="s1p1">
	    The complex exponential function is defined:
	    <m:math>
		<m:apply>
		    <m:eq/>
		    <m:apply>
			<m:ci>x</m:ci>
			<m:ci>t</m:ci>
		    </m:apply>
		    <m:apply>
		        <m:exp/>
			<m:apply>
			    <m:times/>
			    <m:imaginaryi/>
			    <m:ci>Ω</m:ci>
			    <m:ci>t</m:ci>
		        </m:apply>
		    </m:apply>
		</m:apply>
	    </m:math>.
	    If Ω(rad/second) is increased the rate of oscillation will increase continuously.
	    The complex exponential function is also periodic for <emphasis xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/">any</emphasis>
	    value of Ω. In figure <cnxn xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" target="f1"/> we have plotted
	    <m:math>
		<m:apply>
		    <m:exp/>
		    <m:apply>
		        <m:times/>
			<m:imaginaryi/>
			<m:pi/>
			<m:ci>t</m:ci>
		    </m:apply>
	        </m:apply>
	    </m:math> and
	    <m:math>
		<m:apply>
		    <m:exp/>
		    <m:apply>
		        <m:times/>
			<m:imaginaryi/>
			<m:cn>3</m:cn>
			<m:pi/>
			<m:ci>t</m:ci>
		    </m:apply>
	        </m:apply>
	    </m:math> (the real parts only). In <cnxn xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" target="f1"/> we see that
	    the red plot, corresponding to a higher value of Ω, has a higher rate
	    of oscillation.
	    <figure xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" id="f1">
	        <media xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" type="image/png" src="analog_complex_exp.png"/>
		<caption xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/">Real parts of complex exponentials.</caption>
	    </figure>
	
	</para>
		

    </section>

    <section xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" id="s2">
	<name xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/">Discrete time</name>
	<para xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" id="s2p1">
	    The discrete time complex exponential function is defined:
	    <m:math>
		<m:apply>
		    <m:eq/>
		    <m:apply>
			<m:ci>x</m:ci>
			<m:ci>n</m:ci>
		    </m:apply>
		    <m:apply>
		        <m:exp/>
			<m:apply>
			    <m:times/>
			    <m:imaginaryi/>
			    <m:ci>ω</m:ci>
			    <m:ci>n</m:ci>
		        </m:apply>
		    </m:apply>
		</m:apply>
	    </m:math>.
	</para>
	<para xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" id="s2p2">
	        If we increase ω (rad/sample) the rate of oscillation
		will increase and decrease periodically.

		The reason is:
		<m:math>
		    <m:apply>
		        <m:eq/>
			<m:apply>
			    <m:exp/>
			    <m:apply>
				<m:times/>
				<m:imaginaryi/>
				<m:apply>
				    <m:plus/>
				    <m:ci>ω</m:ci>
				    <m:apply>
				        <m:times/>
					<m:cn>2</m:cn>
					<m:pi/>
					<m:ci>k</m:ci>
				    </m:apply>
				</m:apply>
				<m:ci>n</m:ci>
			    </m:apply>
			</m:apply>
			<m:apply>
			    <m:times/>
			    <m:apply>
				<m:exp/>
				<m:apply>
				    <m:times/>
				    <m:imaginaryi/>
				    <m:ci>ω</m:ci>
				    <m:ci>n</m:ci>
				</m:apply>
			    </m:apply>
			    <m:apply>
				<m:exp/>
				<m:apply>
				    <m:times/>
				    <m:imaginaryi/>
				    <m:cn>2</m:cn>
				    <m:pi/>
				    <m:ci>k</m:ci>
				    <m:ci>n</m:ci>
				</m:apply>
			    </m:apply>
		        </m:apply>
			<m:apply>
			    <m:exp/>
			    <m:apply>
			        <m:times/>
				    <m:imaginaryi/>
				    <m:ci>ω</m:ci>
				    <m:ci>n</m:ci>
			    </m:apply>
			</m:apply>
		    </m:apply>
	        </m:math>, where
                <m:math>
                   <m:apply>
                     <m:in/>
                     <m:cn type="integer">n,k</m:cn>
                     <m:integers/>
                   </m:apply>
                 </m:math>.
		
	    </para><!-- End para s2s1p1-->
	    <para xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" id="s2s1p2">
	        This implies that the complex exponential with digital
		angular frequency ω is identical to
		a complex exponential with
		<m:math>
		    <m:apply>
		        <m:eq/>
			<m:ci><m:msub><m:mi>ω</m:mi><m:mn>1</m:mn></m:msub></m:ci>
			<m:apply>
			    <m:plus/>
			    <m:ci>ω</m:ci>
			    <m:apply>
			        <m:times/>
				<m:cn>2</m:cn>
				<m:pi/>
			    </m:apply>
			</m:apply>			
		    </m:apply>
		</m:math>, see <cnxn xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" target="f2"/>
		<figure xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" id="f2">
		     <media xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" type="image/png" src="discrete_complex_exp2.png"/>
		    <caption xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/">Two discrete exponentials that are identical</caption>
		</figure>

		The rate of oscillation will increase until
		<m:math>
		    <m:apply>
		        <m:eq/>
			<m:ci>ω</m:ci>
			<m:pi/>
		    </m:apply>
		</m:math>, then it decreases and repeats after 2π. In <cnxn xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" target="f3"/>
		we see that as we increase the angular frequency towards π the rate of
		oscillation increases. If you download the Matlab files included at the
		end of this module you can adjust the parameters and see that the rate
		of oscillation will decrease when exceeding π (but less than 2π).
		<figure xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" id="f3">
		    <media xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" type="image/png" src="discrete_complex_exp1.png"/>
		    <caption xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/">Two discrete exponentials with different frequency.</caption>
		</figure>

		<note xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" type="consequence">
		    We need to consider discrete time exponentials at an (digital angular) frequency interval of 2π only.
		</note>
		Low (digital angular) frequencies will correspond to ω near even multiplies of π.
		High (digital angular) frequencies will correspond to ω near odd multiplies of π.
		
	    </para>
        
    </section><!-- End section s2 -->
    <section xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" id="s3">
        <name xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/">Matlab files</name>
	<para xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" id="s3p1">
	    <link xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" src="http://cnx.rice.edu/content/m11527/latest/complex_exponential.m">complex_exponential.m</link>
	</para>
    </section>
   <section xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" id="s5">
	<para xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" id="s5p1">
	    Take a look at
	    <list xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" id="l1" type="inline">
		   <item xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/"><cnxn xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" document="m11479">Introduction</cnxn></item>
	           <item xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/"><cnxn xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" document="m11476">Discrete time signals</cnxn></item>
	           <item xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/"><cnxn xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" document="m11478">Analog signals</cnxn></item>
		   <item xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/"><cnxn xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" document="m11477">Frequency definitions and periodicity</cnxn></item>
	           <item xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/"><cnxn xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" document="m11526">Energy &amp; Power</cnxn></item>
	           <item xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/"><cnxn xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" document="m11428">Exercises</cnxn></item>
	   </list> ?
      </para>
      </section>
    

</content>
  
</document>
