1 <?xml version="1.0" encoding="UTF-8"?>
4 * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
5 * Copyright (C) 2011 - DIGITEO - Michael Baudin
7 * Copyright (C) 2012 - 2016 - Scilab Enterprises
9 * This file is hereby licensed under the terms of the GNU GPL v2.0,
10 * pursuant to article 5.3.4 of the CeCILL v.2.1.
11 * This file was originally licensed under the terms of the CeCILL v2.1,
12 * and continues to be available under such terms.
13 * For more information, see the COPYING file which you should have received
14 * along with this program.
17 <refentry 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:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:id="factorial" xml:lang="ru">
19 <refname>factorial</refname>
20 <refpurpose>Функция факториал</refpurpose>
23 <title>Синтаксис</title>
30 <title>Параметры</title>
36 Матрица чисел удвоенной точности (double). Числа должны быть положительными целыми.
43 <para> матрица чисел удвоенной точности.</para>
49 <title>Описание</title>
51 Возвращает факториал <literal>n</literal>, то есть, произведение всех целых чисел
55 Эта функция переполняет разрядную сетку при n>170.
59 <title>Примеры</title>
60 <programlisting role="example"><![CDATA[
61 // Делаем таблицу факториала
65 // Смотрим пределы факториала: f(171)=%inf
66 factorial(170) // 7.257415615307998967e306
67 factorial(171) // %inf
69 // Построим на графике функцию во всём её диапазоне.
71 plot ( 1:170 , factorial , "b-o" );xgrid
73 h.children.log_flags="nln";
78 <title>Литература</title>
79 <para>"Introduction to discrete probabilities", Michael Baudin, 2011</para>