Recursion - PowerPoint PPT Presentation

1 / 2
} ?>
View by Category
About This Presentation
Title:

Recursion

Description:

A Scheme program to compute factorials is (define (fact x) if (= x 0) 1 (* x (fact (- x 1)))) Also recursive. Here is one to do powers. X^N (define (power x n) ... – PowerPoint PPT presentation

Number of Views:19
Avg rating:3.0/5.0
Slides: 3
Provided by: unca1
Learn more at: http://www.cs.unca.edu
Category:
Tags: fact | recursion

less

Write a Comment
User Comments (0)
About PowerShow.com