gmp_jacobi

Jacobi symbol

&reftitle.description; `int` `gmp_jacobi` ``GMP``int``string```num1` ``GMP``int``string```num2`

Computes Jacobi symbol of `num1` and `num2`. `num2` should be odd and must be positive.

&reftitle.parameters;

`num1`

- &gmp.parameter;

`num2`

- &gmp.parameter;

  Should be odd and must be positive.

&reftitle.returnvalues;

&gmp.return;

&reftitle.examples;

### `gmp_jacobi` example

    <?php
    echo gmp_jacobi("1", "3") . "\n";
    echo gmp_jacobi("2", "3") . "\n";
    ?>

&example.outputs;

    1
    0

&reftitle.seealso;

- `gmp_kronecker`
- `gmp_legendre`