Create your blog and photo album with postbit
Create your blog and photo album

Create new post

Content:

Upload a picture:
Tags (keywords separated by comma)

Save Cancel
perl:   Followers: 2 ; Following: 2

Explore perl's photo albums:
Perl images (1)
Photos from posts (2)

Cool things with Perl 6


Euler's identity in Perl 6:

> say e**(pi*i)+1
or you can use Unicode Pi (π) character:
> say e**(π * i)+1;

It prints "0+1.22464679914735e-16i", that is almost "0": 0.000000000000000122464679914735i
It is not exact 0 because the PI number is an approximation.

 

Post by perl (2016-01-03 14:58)

Post your comment:

Name: Email: Site:




| Explore users | New posts | Create your blog | Create your photo album |
| About Postbit | Our blog | Terms of use | Contact Postbit |


Copyright © 2017 - postbit.com