hacked with code cloned from mean example

Pasted the example code from cached mean. Replace “mean” with
“inverse”. Changed the call to mean() to solve().