RosettaCodeData/Task/Gamma-function/TXR/gamma-function-2.txr

8 lines
155 B
Text
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
(defun gamma (x)
(* (sqrt (/ (* 2 %pi%)
x))
(expt (/ x %e%) x)))
(each ((i 1..11))
(put-line (pic "##.######" (gamma (/ i 3.0)))))