<?xml version="1.0" encoding="UTF-8"?>

<!--
 *
 * This help file was generated from diric.sci using help_from_sci().
 *
 -->

<refentry version="5.0-subset Scilab" xml:id="diric" xml:lang="en"
          xmlns="http://docbook.org/ns/docbook"
          xmlns:xlink="http://www.w3.org/1999/xlink"
          xmlns:svg="http://www.w3.org/2000/svg"
          xmlns:ns3="http://www.w3.org/1999/xhtml"
          xmlns:mml="http://www.w3.org/1998/Math/MathML"
          xmlns:scilab="http://www.scilab.org"
          xmlns:db="http://docbook.org/ns/docbook">

  <refnamediv>
    <refname>diric</refname>
    <refpurpose>Calculates the dirichlet function</refpurpose>
  </refnamediv>


<refsynopsisdiv>
   <title>Syntax</title>
   <synopsis>
   y = diric(x, n)
   
   </synopsis>
</refsynopsisdiv>

<refsection>
   <title>Parameters</title>
   <variablelist>
        <varlistentry>
            <term>x:</term>
            <listitem><para> Real valued vector or matrix</para></listitem>
        </varlistentry>
        <varlistentry>
            <term>n:</term>
            <listitem><para> Real positive integer or complex integer</para></listitem>
        </varlistentry>
        <varlistentry>
            <term>y:</term>
            <listitem><para> Dirichlet function values.</para></listitem>
        </varlistentry>
   </variablelist>
</refsection>

<refsection>
   <title>Description</title>
   <para>
This function computes the Dirichlet function values for the input array `x` and number of harmonics `n`.
   </para>
   <para>
</para>
</refsection>

<refsection>
   <title>Examples</title>
   <programlisting role="example"><![CDATA[
f = linspace(-%pi, %pi, 100)  // frequency range
y = diric(f, 7)

plot(f, y)
xtitle("Dirichlet Function - Frequency Response of 7-Harmonic Pulse Train", "Frequency (rad)", "Amplitude")
   ]]></programlisting>
</refsection>
</refentry>
