Setup: Difference between revisions

From Knot Atlas
Jump to navigationJump to search
No edit summary
No edit summary
Tag: Manual revert
 
(55 intermediate revisions by 12 users not shown)
Line 1: Line 1:
{{Manual TOC Sidebar}}
Start by downloading either the file [[Media:KnotTheory.tar.gz|<tt>KnotTheory.tar.gz</tt>]] or the file [[Media:KnotTheory.zip|<tt>KnotTheory.zip</tt>]] (around 1MB each), and unpack either one. This will create a subdirectory KnotTheory/ in your current working directory. This done, no installation is required (though you may wish to check out [[#Further Data Files|Further Data Files]] below). Start Mathematica and you're ready to go:

Start by downloading the file [https://drorbn.net/AcademicPensieve/Projects/KnotTheory/KnotTheory.zip <tt>KnotTheory.zip</tt>] (around 15MB), and unpack it. This will create a subdirectory KnotTheory/ in your current working directory. This done, no installation is required (though you may wish to check out [[#Further Data Files|Further Data Files]] and/or [[#Setting the Path|Setting the Path]] below). Start Mathematica and you're ready to go:


<!--$$<< KnotTheory`$$-->
<!--$$<< KnotTheory`$$-->
<!--Robot Land, no human edits to "END"-->
<!--The lines to END were generated by WikiSplice: do not edit; see manual.-->
<tt>In[1]:=</tt><code> << KnotTheory`</code>
<tt><font color=blue>In[2]:=</font></tt><code> << KnotTheory`</code>


<tt>Loading KnotTheory` (version of August 19, 2005, 13:11:25)...</tt>
<tt>Loading KnotTheory` version of March 22, 2011, 21:10:4.67737.
Read more at http://katlas.org/wiki/KnotTheory.</tt>
<!--END-->
<!--END-->

Notice the little "prime" at the end of <tt>KnotTheory</tt> above. It is a backquote (find it on the upper left side of most keyboards) and not a quote, and it really has to be there for things to work.


Let us check that everything is working well:
Let us check that everything is working well:


<!--$$Alexander[Knot[6, 2]][t]$$-->
<!--$$Alexander[Knot[6, 2]][t]$$-->
<!--Robot Land, no human edits to "END"-->
<!--The lines to END were generated by WikiSplice: do not edit; see manual.-->
{{InOut|
<tt>In[2]:=</tt><code> Alexander[Knot[6, 2]][t]</code>
n = 3 |

in = <nowiki>Alexander[Knot[6, 2]][t]</nowiki> |
<tt>Out[2]=</tt> <math>-t^2+3 t-3+\frac{3}{t}-\frac{1}{t^2}</math>
out= <nowiki> -2 3 2
-3 - t + - + 3 t - t
t</nowiki>}}
<!--END-->
<!--END-->


<!--$$?KnotTheoryVersion$$-->
<!--$$?KnotTheoryVersion$$-->
<!--Robot Land, no human edits to "END"-->
<!--The lines to END were generated by WikiSplice: do not edit; see manual.-->
{{HelpLine|
<tt>In[3]:=</tt><code> ?KnotTheoryVersion</code>
n = 4 |

in = <nowiki>KnotTheoryVersion</nowiki> |
<tt>KnotTheoryVersion[] returns the date of the current version of the package KnotTheory`. KnotTheoryVersion[k] returns the kth field in KnotTheoryVersion[].</tt>
out= <nowiki>KnotTheoryVersion[] returns the date of the current version of the
package KnotTheory`. KnotTheoryVersion[k] returns the kth field in
KnotTheoryVersion[].</nowiki>}}
<!--END-->
<!--END-->


<!--$$?KnotTheoryVersionString$$-->
<!--$$?KnotTheoryVersionString$$-->
<!--Robot Land, no human edits to "END"-->
<!--The lines to END were generated by WikiSplice: do not edit; see manual.-->
{{HelpLine|
<tt>In[4]:=</tt><code> ?KnotTheoryVersionString</code>
n = 5 |

in = <nowiki>KnotTheoryVersionString</nowiki> |
<tt>KnotTheoryVersionString[] returns a string containing the date and time of the current version of the package KnotTheory`. It is generated from KnotTheoryVersion[].</tt>
out= <nowiki>KnotTheoryVersionString[] returns a string containing the date and
time of the current version of the package KnotTheory`. It is generated
from KnotTheoryVersion[].</nowiki>}}
<!--END-->
<!--END-->


<!--$$?KnotTheoryWelcomeMessage$$-->
<!--$$?KnotTheoryWelcomeMessage$$-->
<!--Robot Land, no human edits to "END"-->
<!--The lines to END were generated by WikiSplice: do not edit; see manual.-->
{{HelpLine|
<tt>In[5]:=</tt><code> ?KnotTheoryWelcomeMessage</code>
n = 6 |

<tt>KnotTheoryWelcomeMessage[] returns a string containing the welcome message printed when KnotTheory` is first loaded.</tt>
in = <nowiki>KnotTheoryWelcomeMessage</nowiki> |
out= <nowiki>KnotTheoryWelcomeMessage[] returns a string containing the welcome message
printed when KnotTheory` is first loaded.</nowiki>}}
<!--END-->
<!--END-->


Line 41: Line 57:


<!--$${KnotTheoryVersion[], KnotTheoryVersionString[]}$$-->
<!--$${KnotTheoryVersion[], KnotTheoryVersionString[]}$$-->
<!--Robot Land, no human edits to "END"-->
<!--The lines to END were generated by WikiSplice: do not edit; see manual.-->
{{InOut|
<tt>In[6]:=</tt><code> {KnotTheoryVersion[], KnotTheoryVersionString[]}</code>
n = 7 |
in = <nowiki>{KnotTheoryVersion[], KnotTheoryVersionString[]}</nowiki> |
out= <nowiki>{{2011, 3, 22, 21, 10, 4.67737}, March 22, 2011, 21:10:4.67737}</nowiki>}}
<!--END-->


<!--$$KnotTheoryWelcomeMessage[]$$-->
<tt>Out[6]=</tt> <math>\{\{2005,8,19,13,11,25\},\text{August 19, 2005, 13:11:25}\}</math>
<!--Robot Land, no human edits to "END"-->
{{InOut|
n = 8 |
in = <nowiki>KnotTheoryWelcomeMessage[]</nowiki> |
out= <nowiki>Loading KnotTheory` version of March 22, 2011, 21:10:4.67737.
Read more at http://katlas.org/wiki/KnotTheory.</nowiki>}}
<!--END-->
<!--END-->


<!--$$?KnotTheoryDirectory$$-->
<!--$$?KnotTheoryDirectory$$-->
<!--Robot Land, no human edits to "END"-->
<!--The lines to END were generated by WikiSplice: do not edit; see manual.-->
{{HelpLine|
<tt>In[7]:=</tt><code> ?KnotTheoryDirectory</code>
n = 9 |
in = <nowiki>KnotTheoryDirectory</nowiki> |
out= <nowiki>KnotTheoryDirectory[] returns the best guess KnotTheory` has for its
location on the host computer. It can be reset by the user.</nowiki>}}
<!--END-->


<!--$$KnotTheoryDirectory[]$$-->
<tt>KnotTheoryDirectory[] returns the best guess KnotTheory` has for its location on the host computer. It can be reset by the user.</tt>
<!--Robot Land, no human edits to "END"-->
{{InOut|
n = 10 |
in = <nowiki>KnotTheoryDirectory[]</nowiki> |
out= <nowiki>C:\Documents and Settings\pc\Documenti\Wolfram\KnotTheory</nowiki>}}
<!--END-->
<!--END-->


KnotTheoryDirectory may not work under some operating systems/environments. Please let me know if you encounter any difficulties.
KnotTheoryDirectory may not work under some operating systems/environments. Please let [[User:Drorbn|Dror]] know if you encounter any difficulties.

===Notes===


====Precomputed Data====
'''Notes.'''
<code>KnotTheory`</code> comes with a certain amount of precomputed data which is loaded "on demand" just when it is needed. When a precomputed data file is read by KnotTheory`, a notification message is displayed. To prevent these messages from appearing execute the command <code>Off[KnotTheory::loading]</code>.


====Further Data Files====
* ''Precomputed Data.'' <code>KnotTheory`</code> comes with a certain amount of precomputed data which is loaded "on demand" just when it is needed. When a precomputed data file is read by KnotTheory`, a notification message is displayed. To prevent these messages from appearing execute the command <code>Off[KnotTheory::loading]</code>.
To access the Hoste-Thistlethwaite enumeration of knots with 12 to 16 crossings (see [[Naming and Enumeration]]), also download either the file [http://katlas.org/svn/KnotTheory/tags/stable/DTCodes4Knots12To16.tar.gz <tt>DTCodes4Knots12To16.tar.gz</tt>] or the file [http://katlas.org/svn/KnotTheory/tags/stable/DTCodes4Knots12To16.zip <tt>DTCodes4Knots12To16.zip</tt>] (about 9MB each), and unpack either one into the directory <tt>KnotTheory/</tt>.


====Setting the Path====
* ''Further Data Files.'' To access the Hoste-Thistlethwaite enumeration of knots with 12 to 16 crossings (see [[Naming and Enumeration]]), also download either the file [[Media:DTCodes4Knots12To16.tar.gz|<tt>DTCodes4Knots12To16.tar.gz</tt>]] or the file [[Media:DTCodes4Knots12To16.zip|<tt>DTCodes4Knots12To16.zip</tt>]] (about 9MB each), and unpack either one into the directory <tt>KnotTheory/</tt>.
The directions above are written on the assumption that the package <tt>KnotTheory`</tt> (more precisely, the directory <tt>KnotTheory/</tt> containing the files that make this package), is somewhere on your Mathematica search path. Usually this will be the case if <tt>KnotTheory/</tt> is a subdirectory of your current working directory. If for some reason Mathematica cannot find <tt>KnotTheory`</tt>, you may tell it where to look in either of the following three ways. Assume <tt>KnotTheory/</tt> is a subdirectory of <tt>FullPathToKnotTheory</tt>:
# If you are using <tt>KnotTheory`</tt> rarely and you don't want to change system defaults, evaluate <tt>AppendTo[$Path,"FullPathToKnotTheory"]</tt> within Mathematica before attempting to load <tt>KnotTheory`</tt>.
# If you plan to use <tt>KnotTheory`</tt> often, you may want to move the directory <tt>KnotTheory/</tt> into one of the directories on your path. Evaluate <tt>$Path</tt> within Mathematica to see what those are.
# Alternatively, you may permanently add <tt>FullPathToKnotTheory</tt> to your <tt>$Path</tt>. To do that, find your Mathematica base directory by evaluating <tt>$UserBaseDirectory</tt> (on Dror's laptop, this comes out to be <tt>C:\Users\Dror\AppData\Roaming\Mathematica</tt>), and then add the line <tt>AppendTo[$Path,"FullPathToKnotTheory/"]</tt> to the file <tt>$BaseDirectory/Kernel/init.m</tt> and restart Mathematica.

Latest revision as of 04:45, 5 May 2024


Start by downloading the file KnotTheory.zip (around 15MB), and unpack it. This will create a subdirectory KnotTheory/ in your current working directory. This done, no installation is required (though you may wish to check out Further Data Files and/or Setting the Path below). Start Mathematica and you're ready to go:

In[2]:= << KnotTheory`

Loading KnotTheory` version of March 22, 2011, 21:10:4.67737. Read more at http://katlas.org/wiki/KnotTheory.

Notice the little "prime" at the end of KnotTheory above. It is a backquote (find it on the upper left side of most keyboards) and not a quote, and it really has to be there for things to work.

Let us check that everything is working well:

In[3]:= Alexander[Knot[6, 2]][t]
Out[3]= -2 3 2 -3 - t + - + 3 t - t t
In[4]:= ?KnotTheoryVersion
KnotTheoryVersion[] returns the date of the current version of the package KnotTheory`. KnotTheoryVersion[k] returns the kth field in KnotTheoryVersion[].
In[5]:= ?KnotTheoryVersionString
KnotTheoryVersionString[] returns a string containing the date and time of the current version of the package KnotTheory`. It is generated from KnotTheoryVersion[].
In[6]:= ?KnotTheoryWelcomeMessage
KnotTheoryWelcomeMessage[] returns a string containing the welcome message printed when KnotTheory` is first loaded.

Thus on the day this manual page was last changed, we had:

In[7]:= {KnotTheoryVersion[], KnotTheoryVersionString[]}
Out[7]= {{2011, 3, 22, 21, 10, 4.67737}, March 22, 2011, 21:10:4.67737}
In[8]:= KnotTheoryWelcomeMessage[]
Out[8]= Loading KnotTheory` version of March 22, 2011, 21:10:4.67737. Read more at http://katlas.org/wiki/KnotTheory.
In[9]:= ?KnotTheoryDirectory
KnotTheoryDirectory[] returns the best guess KnotTheory` has for its location on the host computer. It can be reset by the user.
In[10]:= KnotTheoryDirectory[]
Out[10]= C:\Documents and Settings\pc\Documenti\Wolfram\KnotTheory

KnotTheoryDirectory may not work under some operating systems/environments. Please let Dror know if you encounter any difficulties.

Notes

Precomputed Data

KnotTheory` comes with a certain amount of precomputed data which is loaded "on demand" just when it is needed. When a precomputed data file is read by KnotTheory`, a notification message is displayed. To prevent these messages from appearing execute the command Off[KnotTheory::loading].

Further Data Files

To access the Hoste-Thistlethwaite enumeration of knots with 12 to 16 crossings (see Naming and Enumeration), also download either the file DTCodes4Knots12To16.tar.gz or the file DTCodes4Knots12To16.zip (about 9MB each), and unpack either one into the directory KnotTheory/.

Setting the Path

The directions above are written on the assumption that the package KnotTheory` (more precisely, the directory KnotTheory/ containing the files that make this package), is somewhere on your Mathematica search path. Usually this will be the case if KnotTheory/ is a subdirectory of your current working directory. If for some reason Mathematica cannot find KnotTheory`, you may tell it where to look in either of the following three ways. Assume KnotTheory/ is a subdirectory of FullPathToKnotTheory:

  1. If you are using KnotTheory` rarely and you don't want to change system defaults, evaluate AppendTo[$Path,"FullPathToKnotTheory"] within Mathematica before attempting to load KnotTheory`.
  2. If you plan to use KnotTheory` often, you may want to move the directory KnotTheory/ into one of the directories on your path. Evaluate $Path within Mathematica to see what those are.
  3. Alternatively, you may permanently add FullPathToKnotTheory to your $Path. To do that, find your Mathematica base directory by evaluating $UserBaseDirectory (on Dror's laptop, this comes out to be C:\Users\Dror\AppData\Roaming\Mathematica), and then add the line AppendTo[$Path,"FullPathToKnotTheory/"] to the file $BaseDirectory/Kernel/init.m and restart Mathematica.