Added script to create archlinux vserver/chroot environment
[mirrors/Programs.git] / perl / pi.pl
CommitLineData
21c4e167
H
1#!/usr/bin/perl
2
3use strict;
4use warnings;
5use Math::Trig;
6
7#$radians = deg2rad($degrees);
8#$degrees = rad2deg($radians);
9
10print "3.14159265358979323846264338327950288419716939937510\n";
11#for (my $c=1;$c>0;$c++) {
12for (my $c=271842800;$c>0;$c++) {
13 printf '%.80f', ($c * sin ( deg2rad( 180 / $c ) ));
14 print " " . $c . " \r";
15}
16
17#my $pi = (4 * atan2(1,1));
18#print $pi;
This page took 0.184413 seconds and 4 git commands to generate.