--- title: "Matrix Program" id: 77897 type: "computer_media" slug: "matrix-program" url: "http://localhost/computer_media/matrix-program/" markdown_url: "http://localhost/computer_media/matrix-program.md" published_at: "2026-11-19T15:04:08+00:00" modified_at: "2026-11-19T15:04:08+00:00" featured_image: url: "http://localhost/wp-content/uploads/2026/11/matrix-program-1.png" excerpt: "A ZX80 program by an 11-year-old student that multiplies a 1-by-4 matrix by a 4-by-1 matrix." post_tag: - name: "Downloadable" slug: "downloadable" taxonomy: "post_tag" url: "http://localhost/tag/downloadable/" - name: "ZX80" slug: "zx80" taxonomy: "post_tag" url: "http://localhost/tag/zx80/" model: - name: "Sinclair ZX80" slug: "zx80" taxonomy: "model" url: "http://localhost/model/zx80/" indiv: - name: "Eric Deidman" slug: "eric-deidman" taxonomy: "indiv" url: "http://localhost/indiv/eric-deidman/" genre: - name: "Mathematics" slug: "mathematics" taxonomy: "genre" url: "http://localhost/type/mathematics/" media_type: "Program" programmers: - name: "Eric Deidman" slug: "eric-deidman" taxonomy: "indiv" url: "http://localhost/indiv/eric-deidman/" download_url: "https://archive.org/download/timex-sinclair-software-archive/Matrix%20Program%20%281981%29%28Deidman%2C%20Eric%29%28ZX80%29%28US%29%28Program%29.zip" mediadate: "1981" images: - url: "http://localhost/wp-content/uploads/2026/11/matrix-program-1.png" - url: "http://localhost/wp-content/uploads/2026/11/matrix-program-2.png" article_media: - id: 19676 title: "The Math Program" type: "article" url: "http://localhost/article/the-math-program/" media_type_tags: "Mathematics" license: false --- # Matrix Program A short matrix program for the ZX80 written by 11-year-old Eric Deidman, a student in The Math Program of Champaign, IL. It multiplies a 1-by-4 matrix by a 4-by-1 matrix to give a 1-by-1 matrix. After the prompt INPUT NUMBERS TO BE USED, type eight numbers, pressing NEWLINE after each: the four in the row first, then the four in the column. The program prints THE ANSWER IS and the result, A*E+B*F+C*G+D*H. There is only the one prompt, so the eight inputs are typed without further messages. The ZX80’s integer BASIC means whole numbers only. Published in Syntax September 1981 ([The Math Program](https://timexsinclair.com/article/the-math-program/)). ## Source Code ``` 5 PRINT "INPUT NUMBERS TO BE USED" 10 INPUT A 20 INPUT B 30 INPUT C 40 INPUT D 50 INPUT E 60 INPUT F 70 INPUT G 80 INPUT H 90 LET J= A*E+B*F+C*G+D*H 100 PRINT "THE ANSWER IS ";J ```