clojure code for elliptical dome calculations