From 16005fcd307f24de157b6d2c2f174e80f2f93af1 Mon Sep 17 00:00:00 2001 From: Jörg Sommrey <28217714+jo-37@users.noreply.github.com> Date: Fri, 18 Nov 2022 21:20:58 +0100 Subject: Solution to challenge 191 task 2 in wxMaxima --- challenge-191/jo-37/maxima/ch-2.wxm | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 challenge-191/jo-37/maxima/ch-2.wxm diff --git a/challenge-191/jo-37/maxima/ch-2.wxm b/challenge-191/jo-37/maxima/ch-2.wxm new file mode 100644 index 0000000000..d7e0cbef2d --- /dev/null +++ b/challenge-191/jo-37/maxima/ch-2.wxm @@ -0,0 +1,17 @@ +/* [wxMaxima batch file version 1] [ DO NOT EDIT BY HAND! ]*/ +/* [ Created with wxMaxima version 13.04.2 ] */ + +/* [wxMaxima: input start ] */ +n: 15; +/* [wxMaxima: input end ] */ + +/* [wxMaxima: input start ] */ +a: genmatrix(lambda([i, j], if mod(i, j) = 0 or mod(j, i) = 0 then 1 else 0), n, n); +/* [wxMaxima: input end ] */ + +/* [wxMaxima: input start ] */ +permanent(a); +/* [wxMaxima: input end ] */ + +/* Maxima can't load/batch files which end with a comment! */ +"Created with wxMaxima"$ -- cgit