Download code

Jump to: navigation, search

Back to Subtracting_vectors_(Prolog)

Download for Windows: single file, zip

Download for UNIX: single file, zip, tar.gz, tar.bz2

vsub.pl

1 vsub([], [], []).
2 vsub([H1|T1], [H2|T2], [H3|T3]) :-
3     H3 is H1 - H2,
4     vsub(T1, T2, T3).
5