[Jprogramming] Re: moo (Pythagoras)
david alis
david.alis at gmail.com
Sun Aug 10 12:38:34 HKT 2008
The item relating to "N0 V1 V2 Implemented"
http://www.jsoftware.com/help/release/nvv.htm
contains an identity from maths.
A formulation that reminds me of my schooldays is:
Sin =: 1 o. ]
Cos =: 2 o. ]
Pythagoras =: (2 ^~ Sin) + (2 ^~ Cos)
+sample =: 5 ?@#0
0.674048 0.667342 0.930836 0.880495 0.719577
Pythagoras sample
1 1 1 1 1
+sample =: 5 ?@#100
83 60 97 75 88
Pythagoras sample
1 1 1 1 1
More information about the Programming
mailing list