The joke is a pun. 'Pi' has a double meaning. Pi is a number related to the radius and circumference of circles in algebra.  Pi sounds like 'pie' which would also make sense in that sentence, as the wife is both an algebra teacher and fine cook.
My wife is a fine cook , plus a great algebra teacher , she is quite famous for her pi .