mirror of
https://github.com/php/doc-it.git
synced 2026-03-24 07:32:12 +01:00
git-svn-id: https://svn.php.net/repository/phpdoc/it/trunk@314704 c90b9560-bf6c-de11-be94-00142212c4b1
85 lines
2.4 KiB
XML
85 lines
2.4 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<!-- splitted from ./it/functions/math.xml, last change in rev 1.1 -->
|
|
<!-- last change to 'pow' in en/ tree in rev 1.2 -->
|
|
<!-- EN-Revision: n/a Maintainer: cortesi Status: ready -->
|
|
<!-- OLD-Revision: 1.78/EN.1.2 -->
|
|
<refentry xml:id="function.pow" xmlns="http://docbook.org/ns/docbook">
|
|
<refnamediv>
|
|
<refname>pow</refname>
|
|
<refpurpose>Espressione esponenziale</refpurpose>
|
|
</refnamediv>
|
|
<refsect1>
|
|
<title>Descrizione</title>
|
|
<methodsynopsis>
|
|
<type>float</type><methodname>pow</methodname>
|
|
<methodparam><type>float</type><parameter>base</parameter></methodparam>
|
|
<methodparam><type>float</type><parameter>esp</parameter></methodparam>
|
|
</methodsynopsis>
|
|
<para>
|
|
Restituisce <parameter>base</parameter> elevato alla potenza di
|
|
<parameter>esp</parameter>. Se possibile, questa funzione restituisce
|
|
un <type>integer</type>.
|
|
</para>
|
|
<para>
|
|
Se la potenza non può essere computata, viene generato un errore,
|
|
e <function>pow</function> restituirà &false;. dalla versione 4.2.0 di PHP
|
|
la funzione <function>pow</function> non genera alcun warning.
|
|
</para>
|
|
<note>
|
|
<para>
|
|
Il PHP non può gestire valori negativi per <parameter>base</parameter>s.
|
|
</para>
|
|
</note>
|
|
<example>
|
|
<title>Alcuni esempi di <function>pow</function></title>
|
|
<programlisting role="php">
|
|
<![CDATA[
|
|
<?php
|
|
|
|
var_dump( pow(2,8)); // int(256)
|
|
echo pow(-1, 20); // 1
|
|
echo pow(0, 0); // 1
|
|
|
|
echo pow(-1, 5.5); // errore
|
|
|
|
?>
|
|
]]>
|
|
</programlisting>
|
|
</example>
|
|
<warning>
|
|
<para>
|
|
Nel PHP 4.0.6 e precedenti, <function>pow</function> restituiva sempre
|
|
un <type>float</type> e non generava alcun errore.
|
|
</para>
|
|
</warning>
|
|
<para>
|
|
Vedere anche
|
|
<function>exp</function>
|
|
<function>sqrt</function>
|
|
<function>bcpow</function> e
|
|
<function>gmp_pow</function>.
|
|
</para>
|
|
</refsect1>
|
|
</refentry>
|
|
|
|
<!-- Keep this comment at the end of the file
|
|
Local variables:
|
|
mode: sgml
|
|
sgml-omittag:t
|
|
sgml-shorttag:t
|
|
sgml-minimize-attributes:nil
|
|
sgml-always-quote-attributes:t
|
|
sgml-indent-step:1
|
|
sgml-indent-data:t
|
|
indent-tabs-mode:nil
|
|
sgml-parent-document:nil
|
|
sgml-default-dtd-file:"~/.phpdoc/manual.ced"
|
|
sgml-exposed-tags:nil
|
|
sgml-local-catalogs:nil
|
|
sgml-local-ecat-files:nil
|
|
End:
|
|
vim600: syn=xml fen fdm=syntax fdl=2 si
|
|
vim: et tw=78 syn=sgml
|
|
vi: ts=1 sw=1
|
|
-->
|