Reverse engineering Ramanujan and a new formula for perimeter of ellipse

Ramanujan has given us too many formulas and too little explanation. I have wondered, like many others, how he found them. One case is his…