This is an element-by-element exponent function, raising the first argument
by the exponents in the remaining arguments. Equivalent to R's ^ operator.
(defn pow
" This is an element-by-element exponent function, raising the first argument
by the exponents in the remaining arguments. Equivalent to R's ^ operator."
([& args] (reduce (fn [A B] (combine-with A B #(Math/pow %1 %2) pow)) args)))
Comments top
No comments for pow. Log in to add a comment.