FUNZIONI PHP
atan()
Questa funzione restituisce l'arcotangente di un numero.
Sintassi:
atan(x)
Esempio:
Inserisci un numero (ad esempio 1,2) e calcola l'arcotangente.
Codice esempio:
<form action="#" method="get">
<input type="text" name="funz" size="4" maxlength="10">
<input type="submit" value="Calcola">
</form>
<br>
<?
$funz=$_GET['funz'];
$funz2=atan($funz);
echo"L'arcotangente di ".$funz." è ".$funz2;
?>