Path: ...!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: porkchop@invalid.foo (Mike Sanders) Newsgroups: comp.lang.awk Subject: Re: 100 Random Single Variable Linear Equations Date: Sat, 7 Dec 2024 02:39:08 -0000 (UTC) Organization: A noiseless patient Spider Lines: 18 Sender: Mike Sanders Message-ID: References: Injection-Date: Sat, 07 Dec 2024 03:39:08 +0100 (CET) Injection-Info: dont-email.me; posting-host="90fb1f8e178bcc6a3c524255a69fe911"; logging-data="2854959"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18g7ZW9+MzPb8sooiiXXCt9" User-Agent: tin/2.6.2-20221225 ("Pittyvaich") (NetBSD/9.3 (amd64)) Cancel-Lock: sha1:QkUG3WYGcIMJEq7Q+0p/1HuULvA= Bytes: 1634 Janis Papanagnou wrote: > The program could be extended by two principle additions/changes. > > One is to allow negative integral numbers for a, b, c; in that case > you don't even need the "random operator" logic as a side effect. > Since you are using only natural numbers in your formulas you may > want to stay within the domain of integral numbers also in the > results; that would require to check that condition before storing > an accepted formula, or to synthesize such formulas in the first > place. I too want to do this, but will need help when the time comes... -- :wq Mike Sanders