Informacje z branży IT:
Serwisy społecznościowe stają się coraz bardziej opłacalnym źródłem dochodów, którego trzeba bronić przed coraz bardziej pomysłową konkurencją. Wiedzą o tym szefowie popularnego portalu o nazwie Facebook. Dlatego właśnie, prawnicy tej spółki złożyli niedawno pozew przeciwko brazylijskiej witrynie o nazwie Power.com.
Sun, 4 Jan 2009 14:30:58 +0100
Kilka dni temu firma Microsoft złożyła wniosek o przyznanie patentu na korzystanie z komputera w systemie pre-paid. Okazuje się jednak, że amerykański urząd nie przychylił się do próśb giganta z Redmond i podanie odrzucił.
Sun, 4 Jan 2009 12:16:41 +0100
W najnowszej publikacji "The Race for a New Game Machine", której autorami jest dwóch inżynierów z firmy IBM, pojawiła się bardzo ciekawa informacja o tym, że Sony w znacznej części pokryło koszt wyprodukowania procesora Xenon, który znalazł się w konkurencyjnej konsoli Xbox 360 od Microsoftu.
Sun, 4 Jan 2009 12:01:30 +0100
Porozmawiamy jakie są trendy w świecie wirusów komputerowych. Powiemy też jak skutecznie chronić nasz komputer przed spywarem i wirusami komputerowymi oraz innymi zagrożeniami z sieci. Naszymi gośćmi będą Olga Komuda, Adam Żelazko i Piotr Walas szef działu technicznego Panda Security.
Kurs programowania:
L. GMP Functions
Wstęp
These functions allow you to work with arbitrary-length integers using the GNU MP library.
These functions have been added in PHP 4.0.4.
Notatka: Most GMP functions accept GMP number arguments, defined as resource below. However, most of these functions will also accept numeric and string arguments, given that it is possible to convert the latter to a number. Also, if there is a faster function that can operate on integer arguments, it would be used instead of the slower function when the supplied arguments are integers. This is done transparently, so the bottom line is that you can use integers in every function that expects GMP number. See also the gmp_init() function.
| Ostrzeżenie |
If you want to explicitly specify a large integer, specify it as a string. If you don't do that, PHP will interpret the integer-literal first, possibly resulting in loss of precision, even before GMP comes into play. |
Notatka: This extension is available on Windows platforms since PHP 5.1.0.
Wymagania
You can download the GMP library from http://www.swox.com/gmp/. This site also has the GMP manual available.
You will need GMP version 2 or better to use these functions. Some functions may require more recent version of the GMP library.
Instalacja
In order to have these functions available, you must compile PHP with
GMP support by using the --with-gmp option.
Konfiguracja uruchomieniowa
To rozszerzenie nie definiuje posiada żadnych dyrektyw konfiguracyjnych w pliku php.ini.
Typy zasobów
To rozszerzenie nie posiada żadnych rodzajów zasobów.
Stałe predefiniowane
Poniższe stałe są zdefiniowane w tym rozszerzeniu i stają się dostępne, gdy rozszerzenie jest dokompilowane do PHP, lub załadowane dynamicznie przy starcie.
Patrz także
More mathematical functions can be found in the sections BCMath Arbitrary Precision Mathematics Functions and Mathematical Functions.
- Spis treści
- gmp_abs -- Absolute value
- gmp_add -- Add numbers
- gmp_and -- Logical AND
- gmp_clrbit -- Clear bit
- gmp_cmp -- Compare numbers
- gmp_com -- Calculates one's complement
- gmp_div_q -- Divide numbers
- gmp_div_qr -- Divide numbers and get quotient and remainder
- gmp_div_r -- Remainder of the division of numbers
- gmp_div -- Alias dla gmp_div_q()
- gmp_divexact -- Exact division of numbers
- gmp_fact -- Factorial
- gmp_gcd -- Calculate GCD
- gmp_gcdext -- Calculate GCD and multipliers
- gmp_hamdist -- Hamming distance
- gmp_init -- Create GMP number
- gmp_intval -- Convert GMP number to integer
- gmp_invert -- Inverse by modulo
- gmp_jacobi -- Jacobi symbol
- gmp_legendre -- Legendre symbol
- gmp_mod -- Modulo operation
- gmp_mul -- Multiply numbers
- gmp_neg -- Negate number
- gmp_nextprime -- Find next prime number
- gmp_or -- Logical OR
- gmp_perfect_square -- Perfect square check
- gmp_popcount -- Population count
- gmp_pow -- Raise number into power
- gmp_powm -- Raise number into power with modulo
- gmp_prob_prime -- Check if number is "probably prime"
- gmp_random -- Random number
- gmp_scan0 -- Scan for 0
- gmp_scan1 -- Scan for 1
- gmp_setbit -- Set bit
- gmp_sign -- Sign of number
- gmp_sqrt -- Calculate square root
- gmp_sqrtrem -- Square root with remainder
- gmp_strval -- Convert GMP number to string
- gmp_sub -- Subtract numbers
- gmp_xor -- Logical XOR
| Poprzedni | Spis treści | Następny |
| textdomain | Początek rozdziału | gmp_abs |
Kaspersky Lab, producent rozwiązań do ochrony danych, opublikował nowy artykuł analityczny pt. "Identyfikowanie botnetów rozsyłających spam z wykorzystaniem metody skoordynowanych dystrybucji".