view bin/cAt @ 7415:588ebe6ba2d8

<b_jonas> learn norm is the name of the functions in the Eigen and opencv libraries to compute the 2-norm of a vector, and the name of the function in C++ to compute the squared 2-norm of a complex number
author HackBot
date Sun, 17 Apr 2016 20:17:21 +0000
parents a5d6333f9e41
children
line wrap: on
line source

#!/usr/bin/env python
import sys
sys.stdout.write ((lambda s: "".join([(s[i].upper() if i%2!=0 else s[i].lower()) for i in range(len(s)) ]))(open("/dev/stdin").read()))