Lightly Documented Features: Difference between revisions

From Knot Atlas
Jump to navigationJump to search
No edit summary
No edit summary
Line 5: Line 5:
<!--$$?NumberOfKnots$$-->
<!--$$?NumberOfKnots$$-->
<!--Robot Land, no human edits to "END"-->
<!--Robot Land, no human edits to "END"-->
{{HelpLine|
{{Help1|n=1|s=NumberOfKnots}}
n = 1 |
NumberOfKnots[type] return the number of knots of a given type.
in = <nowiki>NumberOfKnots</nowiki> |
{{Help2}}
out= <nowiki>NumberOfKnots[type] return the number of knots of a given type.</nowiki>}}
<!--END-->
<!--END-->


<!--$$NumberOfKnots[16, NonAlternating]$$-->
<!--$$NumberOfKnots[16, NonAlternating]$$-->
<!--Robot Land, no human edits to "END"-->
<!--Robot Land, no human edits to "END"-->
{{InOut1|n=2}}
{{InOut|
n = 2 |
<pre style="color: red; border: 0px; padding: 0em"><nowiki>NumberOfKnots[16, NonAlternating]</nowiki></pre>
in = <nowiki>NumberOfKnots[16, NonAlternating]</nowiki> |
{{InOut2|n=2}}<pre style="border: 0px; padding: 0em"><nowiki>1008906</nowiki></pre>
out= <nowiki>1008906</nowiki>}}
{{InOut3}}
<!--END-->
<!--END-->


<!--$$?MorseLink$$-->
<!--$$?MorseLink$$-->
<!--Robot Land, no human edits to "END"-->
<!--Robot Land, no human edits to "END"-->
{{HelpAndAbout|
{{HelpAndAbout1|n=3|s=MorseLink}}
n = 3 |
MorseLink[K] returns a presentation of the oriented link K, composed, in successive order, of the following 'events': Cup[m,n] is a directed creation, starting at strand position n, towards position m, where m and n differ by 1. X[n,a = {Over/Under}, b = {Up/Down}, c={Up/Down}] is a crossing with lower-left edge at strand n, a determines whether the strand running bottom-left to top-right is over/under the crossing, b and c give the directions of the bottom-left and bottom-right strands respectively through the crossing. Cap[m,n] is a directed cap, from strand m to strand n.
n1 = 4 |
{{HelpAndAbout2|n=4|s=MorseLink}}
in = <nowiki>MorseLink</nowiki> |
MorseLink was added to KnotTheory` by Siddarth Sankaran at the University of Toronto in the summer of 2005.
out= <nowiki>MorseLink[K] returns a presentation of the oriented link K, composed, in successive order, of the following 'events': Cup[m,n] is a directed creation, starting at strand position n, towards position m, where m and n differ by 1. X[n,a = {Over/Under}, b = {Up/Down}, c={Up/Down}] is a crossing with lower-left edge at strand n, a determines whether the strand running bottom-left to top-right is over/under the crossing, b and c give the directions of the bottom-left and bottom-right strands respectively through the crossing. Cap[m,n] is a directed cap, from strand m to strand n.</nowiki> |
{{HelpAndAbout3}}
about= <nowiki>MorseLink was added to KnotTheory` by Siddarth Sankaran at the University of Toronto in the summer of 2005.</nowiki>}}
<!--END-->
<!--END-->


<!--$$MorseLink[Knot[3, 1]]$$-->
<!--$$MorseLink[Knot[3, 1]]$$-->
<!--Robot Land, no human edits to "END"-->
<!--Robot Land, no human edits to "END"-->
{{InOut1|n=5}}
{{InOut|
n = 5 |
<pre style="color: red; border: 0px; padding: 0em"><nowiki>MorseLink[Knot[3, 1]]</nowiki></pre>
in = <nowiki>MorseLink[Knot[3, 1]]</nowiki> |
{{InOut2|n=5}}<pre style="border: 0px; padding: 0em"><nowiki>MorseLink[1 ? 2, 4 ? 3, X[2, Under, Up, Up], X[2, Under, Up, Up],
out= <nowiki>MorseLink[1 ? 2, 4 ? 3, X[2, Under, Up, Up], X[2, Under, Up, Up],
X[2, Under, Up, Up], 2 ? 1, 1 ? 2]</nowiki></pre>
X[2, Under, Up, Up], 2 ? 1, 1 ? 2]</nowiki>}}
{{InOut3}}
<!--END-->
<!--END-->


<!--$$?DrawMorseLink$$-->
<!--$$?DrawMorseLink$$-->
<!--Robot Land, no human edits to "END"-->
<!--Robot Land, no human edits to "END"-->
{{HelpAndAbout|
{{HelpAndAbout1|n=6|s=DrawMorseLink}}
n = 6 |
DrawMorseLink[L] returns a drawing of the knot or link L as a "Morse Link". For diagrams with a large number of crossings, it may be helpful to use one or both of the options as in DrawMorseLink[L, Gap -> g, ArrowSize -> as ], with 0 < as, g < 1, where g controls the amount of white space at each crossing, and as controls the size of the orientation arrows.
n1 = 7 |
{{HelpAndAbout2|n=7|s=DrawMorseLink}}
in = <nowiki>DrawMorseLink</nowiki> |
DrawMorseLink was written by Siddarth Sankaran at the University of Toronto in the summer of 2005.
out= <nowiki>DrawMorseLink[L] returns a drawing of the knot or link L as a "Morse Link". For diagrams with a large number of crossings, it may be helpful to use one or both of the options as in DrawMorseLink[L, Gap -> g, ArrowSize -> as ], with 0 < as, g < 1, where g controls the amount of white space at each crossing, and as controls the size of the orientation arrows.</nowiki> |
{{HelpAndAbout3}}
about= <nowiki>DrawMorseLink was written by Siddarth Sankaran at the University of Toronto in the summer of 2005.</nowiki>}}
<!--END-->
<!--END-->


<!--$$Show[DrawMorseLink[Link[11, Alternating, 548]]]$$-->
<!--$$Show[DrawMorseLink[Link[11, Alternating, 548]]]$$-->
<!--Robot Land, no human edits to "END"-->
<!--Robot Land, no human edits to "END"-->
{{Graphics|
{{Graphics1|n=8}}
n = 9 |
<pre style="color: red; border: 0px; padding: 0em"><nowiki>Show[DrawMorseLink[Link[11, Alternating, 548]]]</nowiki></pre>
in = <nowiki>Show[DrawMorseLink[Link[11, Alternating, 548]]]</nowiki> |
{{Graphics2|n=8|imagename=Lightly_Documented_Features_Out_8.gif}}
img= Lightly_Documented_Features_Out_8.gif |
out= <nowiki>-Graphics-</nowiki>}}
<!--END-->
<!--END-->

Revision as of 13:23, 30 August 2005


(For In[1] see Setup)

In[1]:= ?NumberOfKnots
NumberOfKnots[type] return the number of knots of a given type.
In[2]:= NumberOfKnots[16, NonAlternating]
Out[2]= 1008906
In[3]:= ?MorseLink
MorseLink[K] returns a presentation of the oriented link K, composed, in successive order, of the following 'events': Cup[m,n] is a directed creation, starting at strand position n, towards position m, where m and n differ by 1. X[n,a = {Over/Under}, b = {Up/Down}, c={Up/Down}] is a crossing with lower-left edge at strand n, a determines whether the strand running bottom-left to top-right is over/under the crossing, b and c give the directions of the bottom-left and bottom-right strands respectively through the crossing. Cap[m,n] is a directed cap, from strand m to strand n.
In[4]:= MorseLink::about
MorseLink was added to KnotTheory` by Siddarth Sankaran at the University of Toronto in the summer of 2005.
In[5]:= MorseLink[Knot[3, 1]]
Out[5]= MorseLink[1 ? 2, 4 ? 3, X[2, Under, Up, Up], X[2, Under, Up, Up], X[2, Under, Up, Up], 2 ? 1, 1 ? 2]
In[6]:= ?DrawMorseLink
DrawMorseLink[L] returns a drawing of the knot or link L as a "Morse Link". For diagrams with a large number of crossings, it may be helpful to use one or both of the options as in DrawMorseLink[L, Gap -> g, ArrowSize -> as ], with 0 < as, g < 1, where g controls the amount of white space at each crossing, and as controls the size of the orientation arrows.
In[7]:= DrawMorseLink::about
DrawMorseLink was written by Siddarth Sankaran at the University of Toronto in the summer of 2005.
In[9]:= Show[DrawMorseLink[Link[11, Alternating, 548]]]
Lightly Documented Features Out 8.gif
Out[9]= -Graphics-