for ( $i = 0; $i<=360; $i+=15 ) { printf "func %3d %5f\tinverted %.1f\n", $i, func($i), afunc( func($i) ), "\n"; }