506e8821de072bcb00ee4336907afe3a3f3ad9bf
[scilab.git] / scilab / modules / polynomials / help / en_US / derivat.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3  * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
4  * Copyright (C) 2006-2008 - INRIA
5  *
6  * Copyright (C) 2012 - 2016 - Scilab Enterprises
7  *
8  * This file is hereby licensed under the terms of the GNU GPL v2.0,
9  * pursuant to article 5.3.4 of the CeCILL v.2.1.
10  * This file was originally licensed under the terms of the CeCILL v2.1,
11  * and continues to be available under such terms.
12  * For more information, see the COPYING file which you should have received
13  * along with this program.
14  *
15  -->
16 <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" xmlns:scilab="http://www.scilab.org" xml:lang="en" xml:id="derivat">
17     <refnamediv>
18         <refname>derivat</refname>
19         <refpurpose>Rational matrix derivative</refpurpose>
20     </refnamediv>
21     <refsynopsisdiv>
22         <title>Syntax</title>
23         <synopsis>pd=derivat(p)</synopsis>
24     </refsynopsisdiv>
25     <refsection>
26         <title>Arguments</title>
27         <variablelist>
28             <varlistentry>
29                 <term>p</term>
30                 <listitem>
31                     <para>polynomial or rational matrix</para>
32                 </listitem>
33             </varlistentry>
34         </variablelist>
35     </refsection>
36     <refsection>
37         <title>Description</title>
38         <para>
39             The derivat() function works with expressions like
40             <latex>p(z) = \sum \limits_{i = -\infty}^{\infty} A_{i} z^{i}</latex>
41             which consists of functions of linear combinations with integer exponents of one variable (in the example denoted by z).
42         </para>
43         <para>
44             The function derivat() implements the analytical derivation of p(z), giving the following result.
45             <latex>\dfrac{d(p(z))}{d z} = \sum \limits_{i = -\infty}^{\infty} i A_{i} z^{i - 1}</latex>
46         </para>
47     </refsection>
48     <refsection>
49         <title>Examples</title>
50         <programlisting role="example"><![CDATA[
51 s=poly(0,'s');
52 derivat(1/s)  // -1/s^2;
53  ]]></programlisting>
54         <programlisting role="example"><![CDATA[
55 p1 = poly([1 -2 1], 'x', 'coeff')
56 derivat(p1)
57  ]]></programlisting>
58         <programlisting role="example"><![CDATA[
59 p2 = poly([1 -4 2], 'y', 'coeff')
60 derivat(p2)
61  ]]></programlisting>
62         <programlisting role="example"><![CDATA[
63 p3 = poly(ones(1, 10), 'z', 'coeff')
64 derivat(p3)
65  ]]></programlisting>
66         <programlisting role="example"><![CDATA[
67 p4 = poly([-1 1], 't', 'roots')
68 derivat(p4)
69  ]]></programlisting>
70         <programlisting role="example"><![CDATA[
71 s = %s; p5 = s^{-1} + 2 + 3*s
72 derivat(p5)
73  ]]></programlisting>
74     </refsection>
75 </refentry>