Software Answer Please Unit Converter for WM Pocket PC
< Wikipedia:Reference desk(Redirected from Wikipedia:Reference desk/Computer)Software Answer Please Unit Converter for WM Pocket PC
Problem in Scheme with Let
Okay, I'm trying to write a function that will generate all of the "co-matrices" (essentially a co-matrix of an n*n matrix will be an (n-1)*(n-1) matrix with a given row and column removed) of a matrix in Scheme, here is the working code to generate a given co-matrix
(define co-matrix (let ((answer ())) (lambda (matrix row iteration) (cond ((= iteration 0) answer) ((> ( + 1 row) (length matrix)) ;if this is true, we want to go start of matrix (append answer (cons (cdar (get-list 0 matrix)) (co-matrix matrix 1 (- iteration 1))))) (else (append answer (cons (cdar (get-list row matrix)) (co-matrix matrix (+ 1 row) (- iteration 1))))))))) Here's the nonworking (but probably would if I could figure a way around the let statement stuff) code to generate all the co-matrices when we fix a row and remove each row. Vendors who sell cases include E&B Cases, Sena Cases, and Vaja Cases.