Sujet : Re: 100 Random Single Variable Linear Equations
De : janis_papanagnou+ng (at) *nospam* hotmail.com (Janis Papanagnou)
Groupes : comp.lang.awkDate : 06. Dec 2024, 13:59:28
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <viusfg$2bgu6$1@dont-email.me>
References : 1 2 3
User-Agent : Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0
On 06.12.2024 13:43, Janis Papanagnou wrote:
Hi Mike,
is my guess correct that you want to create linear equation samples
to be printed (on paper) and solved? Or is it meant as a programming
course sample? - My suggestions depend on being one or the other...
[...]
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.
Just some more ideas.
Janis