[Jprogramming] J as a calculator
Raul Miller
rauldmiller at gmail.com
Wed Mar 19 17:20:58 UTC 2014
Yes.
And each has their own contexts where they are more convenient.
-. is nice with @ & &. &.: &: @:
1 - is nice when building verb trains.
And there's easily an hour's worth of teaching material here (or
significantly more, for advanced classes), related to the history of
computing, logic, boolean algebra, probability, and so on...
require'plot'
N=:0.01*i.101
X=: ["0/~ N
Y=: ]"0/~ N
Z=: *&.-./~ N
$X
101 101
$Y
101 101
$Z
101 101
plot (,X);(,Y);(,Z)
Thanks,
--
Raul
On Wed, Mar 19, 2014 at 12:37 PM, <neitzel at gaertner.de> wrote:
> > 1- %~/ +/ (100 5) * _2[\ (10 3 7.5 2)
>
> 1 - y anti-truism/probability/fraction is -. y
>
> Martin
>
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
>
More information about the Programming
mailing list