Perceptron: Difference between revisions
m
→{{header|REXX}}: minor correction
Walterpachl (talk | contribs) (add REXX) |
Walterpachl (talk | contribs) m (→{{header|REXX}}: minor correction) |
||
Line 899:
show=wordpos(run,'0 1' tries)>0
If run>0 Then Say ' '
If show Then Say 'Point x f(x) r y
zz=0
Do d=1 To dots
Line 968:
Return</lang>
{{out}}
<pre>Point x f(x) r y
1 100 110 < 204 1 ok 1
2 613 469 > 117 1 -- 1
Line 1,002:
Initial pattern 7 points fire. weights= 0.28732 0.50931 0.45298
Point x f(x) r y
1 100 110 < 204 1 ok 1
2 613 469 > 117 1 -- 1
Line 1,052:
After 9 loops 29 points fire. weights=-0.21601 0.29294 0.45176
Point x f(x) r y
1 100 110 < 204 1 ok 1
2 613 469 > 117 -1 ok 2
Line 1,085:
---------------------------------
After 10 loops 29 points fire. weights=-0.21883 0.29057 0.45174</pre>
=={{header|Scala}}==
|