Lightly Documented Features: Difference between revisions
From Knot Atlas
Jump to navigationJump to search
DrorsRobot (talk | contribs) No edit summary |
No edit summary |
||
Line 6: | Line 6: | ||
<!--Robot Land, no human edits to "END"--> |
<!--Robot Land, no human edits to "END"--> |
||
{{HelpLine| |
{{HelpLine| |
||
n = |
n = 2 | |
||
in = <nowiki>NumberOfKnots</nowiki> | |
in = <nowiki>NumberOfKnots</nowiki> | |
||
out= <nowiki>NumberOfKnots[n] returns the number of knots with n crossings. |
out= <nowiki>NumberOfKnots[n] returns the number of knots with n crossings. |
||
Line 15: | Line 15: | ||
<!--Robot Land, no human edits to "END"--> |
<!--Robot Land, no human edits to "END"--> |
||
{{InOut| |
{{InOut| |
||
n = |
n = 3 | |
||
in = <nowiki>NumberOfKnots[16, NonAlternating]</nowiki> | |
in = <nowiki>NumberOfKnots[16, NonAlternating]</nowiki> | |
||
out= <nowiki>1008906</nowiki>}} |
out= <nowiki>1008906</nowiki>}} |
||
Line 23: | Line 23: | ||
<!--Robot Land, no human edits to "END"--> |
<!--Robot Land, no human edits to "END"--> |
||
{{HelpLine| |
{{HelpLine| |
||
n = |
n = 4 | |
||
in = <nowiki>AlternatingQ</nowiki> | |
in = <nowiki>AlternatingQ</nowiki> | |
||
out= <nowiki>AlternatingQ[D] returns True iff the knot/link diagram D is alternating.</nowiki>}} |
out= <nowiki>AlternatingQ[D] returns True iff the knot/link diagram D is alternating.</nowiki>}} |
||
Line 33: | Line 33: | ||
<!--Robot Land, no human edits to "END"--> |
<!--Robot Land, no human edits to "END"--> |
||
{{InOut| |
{{InOut| |
||
n = |
n = 5 | |
||
in = <nowiki>Total[AlternatingQ /@ AllKnots[{0,11}]]</nowiki> | |
in = <nowiki>Total[AlternatingQ /@ AllKnots[{0,11}]]</nowiki> | |
||
out= <nowiki>238 False + 564 True</nowiki>}} |
out= <nowiki>238 False + 564 True</nowiki>}} |
Latest revision as of 17:24, 21 February 2013
(For In[1] see Setup)
|
In[3]:=
|
NumberOfKnots[16, NonAlternating]
|
Out[3]=
|
1008906
|
|
Among the knots with up to 11 crossings, 564 are alternating and 238 are not:
In[5]:=
|
Total[AlternatingQ /@ AllKnots[{0,11}]]
|
Out[5]=
|
238 False + 564 True
|