aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJörg Sommrey <28217714+jo-37@users.noreply.github.com>2022-11-18 21:21:35 +0100
committerJörg Sommrey <28217714+jo-37@users.noreply.github.com>2022-11-18 21:21:35 +0100
commit42825cb731c5bc9919fd8fd318dfacd0b2f79967 (patch)
treee0e9953acb35ef3924517a758276bcef96b88844
parent17a5e84d8f2fa0d0b393aa6cf15cce398e763c7c (diff)
parent16005fcd307f24de157b6d2c2f174e80f2f93af1 (diff)
downloadperlweeklychallenge-club-42825cb731c5bc9919fd8fd318dfacd0b2f79967.tar.gz
perlweeklychallenge-club-42825cb731c5bc9919fd8fd318dfacd0b2f79967.tar.bz2
perlweeklychallenge-club-42825cb731c5bc9919fd8fd318dfacd0b2f79967.zip
Solution to challenge 191 task2 in wxMaxima
-rw-r--r--challenge-191/jo-37/maxima/ch-2.wxm17
1 files changed, 17 insertions, 0 deletions
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"$