Call a foreign-language function: Difference between revisions

m
Line 1,852:
r3 .33333333 .25 .2
r4 .25 .2 .16666667 .14285714</lang>
 
Notice that Mata has the builtin function '''[https://www.stata.com/help.cgi?mf_Hilbert Hilbert]''' to do the same:
 
<lang stata>. mata: Hilbert(4)
[symmetric]
1 2 3 4
+---------------------------------------------------------+
1 | 1 |
2 | .5 .3333333333 |
3 | .3333333333 .25 .2 |
4 | .25 .2 .1666666667 .1428571429 |
+---------------------------------------------------------+</lang>
 
=={{header|Swift}}==
1,336

edits