<?xml version="1.0" encoding="ISO-8859-1"?>
<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" version="5.0-subset Scilab" xml:lang="en" xml:id="gph_add">
  <info>
    <pubdate>14-May-2010</pubdate>
  </info>

  <refnamediv>
    <refname>gph_add</refname>
    <refpurpose>Graph-matrix calculus (GPH), Addition of two functions</refpurpose>
  </refnamediv>

   <refsynopsisdiv>
     <title>Calling Sequence</title>
     <synopsis>gph3 = gph_add(gph1, gph2)</synopsis>
   </refsynopsisdiv>

   <refsection>
     <title>Parameters</title>
     <variablelist>

       <varlistentry>
         <term>gph1</term>
         <listitem>
           <para>matrix. A function in GPH matrix form.</para>
         </listitem>
       </varlistentry>

       <varlistentry>
         <term>gph2</term>
         <listitem>
           <para>matrix. A function in GPH matrix form.</para>
         </listitem>
       </varlistentry>

       <varlistentry>
         <term>gph3</term>
         <listitem>
           <para>matrix. The GPH function that is the sum of gph1 and gph2.</para>
         </listitem>
       </varlistentry>

     </variablelist>
   </refsection>

   <refsection>
     <title>Description</title>

     <para>
       Computes the sum of two functions given in GPH matrix form.
       The domain of the resulting function is the intersection of the
       domains of the two input functions.
     </para>
   </refsection>

   <refsection>
     <title>Examples</title>
     <programlisting role="example"><![CDATA[
gph1 = [-2,-1,1,2; -2,0,0,2; 1,0,0,1];
gph2 = [0,0,2,2; 0,1,1,2; %inf,0,2,%inf];
gph3 = gph_add(gph1, gph2),
scf(); gph_plot(gph1, gph2);
scf(); gph_plot(gph3);
]]></programlisting>
   </refsection>

   <refsection>
     <title>See Also</title>
     <simplelist type="inline">
       <member><link linkend="gph_function">gph_function</link></member>
   </simplelist></refsection>

   <refsection>
     <title>Authors</title>
     <para>
       <literal>Bryan Gardiner</literal>, University of British Columbia, BC, Canada
     </para>
   </refsection>

</refentry>
