#!perl -p0a @r=($/=1);$^=.5;@r=map$r-$l+($l=$$_*($r=shift@r)),/./g,$r=$l=0for@F;$_="@r"
^ /^ ^^/ /\/\ ^^/^\ ^\^\/^ \^^^\^/
0 0.09375 0.28125 0.4375 0.1875 0 0 0
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!