Groups | Search | Server Info | Login | Register
Groups > comp.lang.awk > #9886
| From | porkchop@invalid.foo (Mike Sanders) |
|---|---|
| Newsgroups | comp.lang.awk |
| Subject | Re: 100 Random Single Variable Linear Equations |
| Date | 2024-12-07 01:36 +0000 |
| Organization | A noiseless patient Spider |
| Message-ID | <vj08q1$2mf7i$1@dont-email.me> (permalink) |
| References | (1 earlier) <vitvta$24sm3$1@dont-email.me> <viurhe$2bces$1@dont-email.me> <viuunp$2c1ev$1@dont-email.me> <vivl6h$2ht3c$1@dont-email.me> <slrnvl70pt.14uh.naddy@lorvorc.mips.inka.de> |
Christian Weisgerber <naddy@mips.inka.de> wrote:
> I suspect Mike used '*' as as short-hand for "a multiplication
> sign" and not specifically the asterisk.
Yes that's exactly the case (sorry for any confusion folks).
The code simply generates problems for the student/enthusiast
to solve. The books I've read use the symbols we all know.
But some older books complained that: 5y is ambiguous &
would be better expressed as: 5 * y, where * is the actual
multiplication symbol in the book & y is the variable.
In the code posted, I'm using 7bit ASCII for all operators:
* multiplication 2 * 2 = 4
/ division 4 / 2 = 2
+ addition 2 + 2 = 4
- subtraction 2 - 2 = 0
^ power 2 ^ 2 = 4
_nth subscript a_1 (1st element in array a[1])
% modulus
< less than
> greator than
& and
| or
(), [], {} order does not matter, evaluate inner
to outer before outside expressions
{2 / [(x + y + z) - 2]}
r! factorial 4! = 4 * 3 * 2 * 1 = 24
= equals
!= not equal
~ approximately equal
f(a, b) = a + 10 function definition
how to handle matrices?
[x y
0 1]
[x y]
[0 1]
--
:wq
Mike Sanders
Back to comp.lang.awk | Previous | Next — Previous in thread | Next in thread | Find similar
100 Random Single Variable Linear Equations porkchop@invalid.foo (Mike Sanders) - 2024-12-06 03:46 +0000
Re: 100 Random Single Variable Linear Equations porkchop@invalid.foo (Mike Sanders) - 2024-12-06 04:51 +0000
Re: 100 Random Single Variable Linear Equations Janis Papanagnou <janis_papanagnou+ng@hotmail.com> - 2024-12-06 13:43 +0100
Re: 100 Random Single Variable Linear Equations Janis Papanagnou <janis_papanagnou+ng@hotmail.com> - 2024-12-06 13:59 +0100
Re: 100 Random Single Variable Linear Equations porkchop@invalid.foo (Mike Sanders) - 2024-12-07 02:39 +0000
Re: 100 Random Single Variable Linear Equations porkchop@invalid.foo (Mike Sanders) - 2024-12-07 20:42 +0000
Re: 100 Random Single Variable Linear Equations porkchop@invalid.foo (Mike Sanders) - 2024-12-06 13:38 +0000
Re: 100 Random Single Variable Linear Equations Janis Papanagnou <janis_papanagnou+ng@hotmail.com> - 2024-12-06 21:01 +0100
Re: 100 Random Single Variable Linear Equations Christian Weisgerber <naddy@mips.inka.de> - 2024-12-06 23:05 +0000
Re: 100 Random Single Variable Linear Equations porkchop@invalid.foo (Mike Sanders) - 2024-12-07 01:36 +0000
Re: 100 Random Single Variable Linear Equations Keith Thompson <Keith.S.Thompson+u@gmail.com> - 2024-12-06 12:53 -0800
Re: 100 Random Single Variable Linear Equations porkchop@invalid.foo (Mike Sanders) - 2024-12-06 22:05 +0000
Re: 100 Random Single Variable Linear Equations porkchop@invalid.foo (Mike Sanders) - 2024-12-07 02:06 +0000
Re: 100 Random Single Variable Linear Equations porkchop@invalid.foo (Mike Sanders) - 2024-12-06 22:04 +0000
Re: 100 Random Single Variable Linear Equations porkchop@invalid.foo (Mike Sanders) - 2024-12-07 01:49 +0000
Re: 100 Random Single Variable Linear Equations Janis Papanagnou <janis_papanagnou+ng@hotmail.com> - 2024-12-07 03:21 +0100
Re: 100 Random Single Variable Linear Equations porkchop@invalid.foo (Mike Sanders) - 2024-12-08 06:40 +0000
Re: 100 Random Single Variable Linear Equations Janis Papanagnou <janis_papanagnou+ng@hotmail.com> - 2024-12-08 15:15 +0100
Re: 100 Random Single Variable Linear Equations porkchop@invalid.foo (Mike Sanders) - 2024-12-09 16:43 +0000
Re: 100 Random Single Variable Linear Equations Janis Papanagnou <janis_papanagnou+ng@hotmail.com> - 2024-12-09 21:10 +0100
Re: 100 Random Single Variable Linear Equations porkchop@invalid.foo (Mike Sanders) - 2024-12-08 06:06 +0000
Re: 100 Random Single Variable Linear Equations porkchop@invalid.foo (Mike Sanders) - 2024-12-08 07:16 +0000
Re: 100 Random Single Variable Linear Equations porkchop@invalid.foo (Mike Sanders) - 2024-12-08 11:02 +0000
csiph-web