Rapide Advanced Adulte
 
 Web|Image|Shop|Video|News|Wmx|Mobile|Wiki|Ajouter ce moteur

     Manuel PHP     
Partager
 
 
Partager
Partager

 

Table :

.gmp abs
.gmp add
.gmp and
.gmp clrbit
.gmp cmp
.gmp com
.gmp div q
.gmp div qr
.gmp div r
.gmp div
.gmp div q()
.gmp divexact
.gmp fact
.gmp gcd
.gmp gcdext
.gmp hamdist
.gmp init
.gmp intval
.gmp invert
.gmp jacobi
.gmp legendre
.gmp mod
.gmp mul
.gmp neg
.gmp nextprime
.gmp or
.gmp perfect square
.gmp popcount
.gmp pow
.gmp powm
.gmp prob prime
.gmp random
.gmp scan0
.gmp scan1
.gmp setbit
.gmp sign
.gmp sqrt
.gmp sqrtrem
.gmp strval
.gmp sub
.gmp xor
 
   

  gmp_fact  


gmp_fact

(PHP 4 >= 4.0.4, PHP 5)

gmp_fact -- Factorielle GMP

Description

resource gmp_fact ( int a )

gmp_fact() calcule la factorielle de a : a!.

Exemple 1. Exemple avec gmp_fact()

<?php
$fact1
= gmp_fact(5); // 5 * 4 * 3 * 2 * 1
echo gmp_strval($fact1) . "\n";

$fact2 = gmp_fact(50); // 50 * 49 * 48, ... etc
echo gmp_strval($fact2) . "\n";
?>

L'exemple ci-dessus va afficher :

120
30414093201713378043612608166064768844377641568960512000000000000

    Annonces       
 

 Retour au chapitre Php

 

Top
 

Ajouter JungleKey.fr à votre Explorateur

 
 

About Us | © 2007 JungleKey




iBlack | Mobile | Wiki | Ajouter ce moteur
.