1
<?xml version="1.0" encoding="ISO-8859-1"?>
3
* Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
4
* Copyright (C) 2008 - INRIA
6
* This file must be used under the terms of the CeCILL.
7
* This source file is licensed as described in the file COPYING, which
8
* you should have received as part of this distribution. The terms
9
* are also available at
10
* http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
13
<refentry version="5.0-subset Scilab" xml:id="nextpow2" xml:lang="en"
14
xmlns="http://docbook.org/ns/docbook"
15
xmlns:xlink="http://www.w3.org/1999/xlink"
16
xmlns:svg="http://www.w3.org/2000/svg"
17
xmlns:ns5="http://www.w3.org/1999/xhtml"
18
xmlns:mml="http://www.w3.org/1998/Math/MathML"
19
xmlns:db="http://docbook.org/ns/docbook">
21
<pubdate>$LastChangedDate$</pubdate>
25
<refname>nextpow2</refname>
27
<refpurpose>pr�xima pot�ncia de 2 mais alta </refpurpose>
31
<title>Calling Sequence</title>
33
<synopsis>t=nextpow2(x)</synopsis>
37
<title>Parameters</title>
44
<para>vetor ou matriz de reais</para>
52
<para>matriz ou vetor de inteiros</para>
59
<title>Descri��o</title>
61
<para>Se <literal>x</literal> � escalar, <literal>nextpow2(x)</literal>
62
retorna o primeiro <literal>p</literal> tal que <literal>2^p >=
63
abs(x)</literal> . Se <literal>x</literal> � um vetor ou uma matriz
64
<literal>nextpow2(x)</literal> se aplica elemento a elemento.</para>
68
<title>Exemplos</title>
70
<programlisting role="example">
80
<title>Ver Tamb�m</title>
82
<simplelist type="inline">
83
<member><link linkend="frexp">frexp</link></member>