Please note, this is a STATIC archive of website www.tutorialspoint.com from 11 May 2019, cach3.com does not collect or store any user information, there is no "phishing" involved.
Tutorialspoint

Toms 60 harc 4

(defun fact (y)
    (if(= y 0) 1 
    (if(= y -1) 1 
    (* y (fact (- y 2)))))
)

(defun sum (x) 
   ( if(= 0 x) 0
    (+ (sum (- x 1)) (* x (* x x))))
)

(defun f (x y) 
    (/ (sum x) (fact y))
  )  
(write (f 10 10))

Advertisements
Loading...

We use cookies to provide and improve our services. By using our site, you consent to our Cookies Policy.