Lightly Documented Features: Difference between revisions
From Knot Atlas
Jump to navigationJump to search
No edit summary |
DrorsRobot (talk | contribs) No edit summary |
||
Line 8: | Line 8: | ||
n = 1 | |
n = 1 | |
||
in = <nowiki>NumberOfKnots</nowiki> | |
in = <nowiki>NumberOfKnots</nowiki> | |
||
out= <nowiki>NumberOfKnots[ |
out= <nowiki>NumberOfKnots[n] returns the number of knots with n crossings. |
||
NumberOfKnots[n, Alternating|NonAlternating] returns the number of knots of the specified type.</nowiki>}} |
|||
<!--END--> |
<!--END--> |
||
Line 22: | Line 23: | ||
<!--Robot Land, no human edits to "END"--> |
<!--Robot Land, no human edits to "END"--> |
||
{{HelpLine| |
{{HelpLine| |
||
n = |
n = 3 | |
||
in = <nowiki> |
in = <nowiki>AlternatingQ</nowiki> | |
||
out= <nowiki> |
out= <nowiki>AlternatingQ[K] tries to decide if the knot K is alternating. This function is extremely incomplete; it only works for named knots from the tables, or torus knots.</nowiki>}} |
||
<!--END--> |
<!--END--> |
||
Line 32: | Line 33: | ||
<!--Robot Land, no human edits to "END"--> |
<!--Robot Land, no human edits to "END"--> |
||
{{InOut| |
{{InOut| |
||
n = |
n = 4 | |
||
in = <nowiki> |
in = <nowiki>Total[AlternatingQ /@ AllKnots[{0,11}]]</nowiki> | |
||
out= <nowiki> |
out= <nowiki>238 False + 564 True</nowiki>}} |
||
<!--END--> |
<!--END--> |
Revision as of 20:39, 12 December 2007
(For In[1] see Setup)
|
In[2]:=
|
NumberOfKnots[16, NonAlternating]
|
Out[2]=
|
1008906
|
|
Among the knots with up to 11 crossings, 564 are alternating and 238 are not:
In[4]:=
|
Total[AlternatingQ /@ AllKnots[{0,11}]]
|
Out[4]=
|
238 False + 564 True
|