Using the LinKnot package: Difference between revisions
No edit summary |
No edit summary |
||
Line 3: | Line 3: | ||
The Mathematica package [http://www.mi.sanu.ac.yu/vismath/linknot/ ''LinKnot''] is a combination of two packages. The first, ''Knot2000'' was written by M.Ochiai and N.Imafuji. This was extended to the package ''LinKnot'' by S. Jablan and R. Sazdanovic. The package ''LinKnot'' provides many useful things ''KnotTheory'' can't do natively; for example, it can interpret Conway notation, and, at least on Windows machines, provides nice graphics for knots, and a graphical interface for drawing knots by hand. |
The Mathematica package [http://www.mi.sanu.ac.yu/vismath/linknot/ ''LinKnot''] is a combination of two packages. The first, ''Knot2000'' was written by M.Ochiai and N.Imafuji. This was extended to the package ''LinKnot'' by S. Jablan and R. Sazdanovic. The package ''LinKnot'' provides many useful things ''KnotTheory'' can't do natively; for example, it can interpret Conway notation, and, at least on Windows machines, provides nice graphics for knots, and a graphical interface for drawing knots by hand. |
||
To use ''LinKnot'' with ''KnotTheory'', you should download LinKnot.zip from the [http://www.mi.sanu.ac.yu/vismath/linknot/ LinKnot site] (a full ''LinKnot'' manual page ManualK2KC.nb is in the zip file, and the main file is the mathematica notebook <tt>K2KL.nb</tt>). After downloading the file LinKnot.zip: |
To use ''LinKnot'' with ''KnotTheory'', you should download LinKnot.zip from the [http://www.mi.sanu.ac.yu/vismath/linknot/LinKnot.zip LinKnot site] (a full ''LinKnot'' manual page ManualK2KC.nb is in the zip file, and the main file is the mathematica notebook <tt>K2KL.nb</tt>). After downloading the file LinKnot.zip: |
||
⚫ | |||
1) extract it in the Mathematica directory |
|||
2) Set the path to ''KnotTheory`'' and from any nb-file run: |
|||
C:\ProgramFiles\WolframResearch\Mathematica\5.2 |
|||
⚫ | |||
⚫ | |||
⚫ | |||
2) from any nb-file run: |
|||
⚫ | |||
⚫ | |||
<< |
<< KnotTheory` |
||
For example, if ''KnotTheory'' is also at C: run: |
|||
⚫ | |||
⚫ | |||
⚫ | |||
C://ProgramFiles/WolframResearch/Mathematica/5.2/LinKnot |
|||
⚫ | |||
and run |
|||
<< KnotTheory` |
|||
⚫ | |||
Then you can work with the both programs ''KnotTheory'' and ''LinKnot''. |
|||
⚫ | |||
The directory LinKnot contains ''Knot Theory'' package, that we will try to keep updated. However, if you have in your computer the more recent version of ''Knot Theory'', you can run: |
|||
SetDirectory["LinKnot"]; |
|||
⚫ | |||
⚫ | |||
Get["Path to Knot Theory\\init.m"] |
|||
of just update the version of ''KnotTheory'' already existing in the directory LinKnot by extracting the most recent file KnotTheory.zip into the directory LinKnot. |
|||
Finally, ''LinKnot'' and Knot Theory can be placed anywhere you like, but in this case you need to set the paths by: |
|||
SetDirectory["Path to LinKnot"]; |
|||
<<LinKnots` |
|||
⚫ | |||
Get["Path to KnotTheory\\KnotTheory\\init.m"] |
|||
⚫ | |||
After you've done this, everything should just work. If everything doesn't just work, please complain to [[User:Scott|Scott]] or Slavik Jablan (jablans@yahoo.com). |
After you've done this, everything should just work. If everything doesn't just work, please complain to [[User:Scott|Scott]] or Slavik Jablan (jablans@yahoo.com). |
Revision as of 07:31, 7 April 2006
The Mathematica package LinKnot is a combination of two packages. The first, Knot2000 was written by M.Ochiai and N.Imafuji. This was extended to the package LinKnot by S. Jablan and R. Sazdanovic. The package LinKnot provides many useful things KnotTheory can't do natively; for example, it can interpret Conway notation, and, at least on Windows machines, provides nice graphics for knots, and a graphical interface for drawing knots by hand.
To use LinKnot with KnotTheory, you should download LinKnot.zip from the LinKnot site (a full LinKnot manual page ManualK2KC.nb is in the zip file, and the main file is the mathematica notebook K2KL.nb). After downloading the file LinKnot.zip:
1) extract LinKnot.zip anywhere (e.g., to the local disc C:). It will automatically create new folder LinKnot
2) Set the path to KnotTheory` and from any nb-file run:
SetDirectory["C:\\LinKnot"];
<< LinKnots`
AppendTo[$Path, "Path to KnotTheory"];
<< KnotTheory`
For example, if KnotTheory is also at C: run:
SetDirectory["C:\\LinKnot"];
<< LinKnots`
AppendTo[$Path, "C:\\"];
<< KnotTheory`
Then you can work with the both programs KnotTheory and LinKnot.
If you like to have the complete program LinKnot visible (with the usage, description of all LinKnot functions, etc.) and run together KnotTheory and LinKnot, you can open the file K2KL.nb from the directory LinKnot and run the same command as before.
After you've done this, everything should just work. If everything doesn't just work, please complain to Scott or Slavik Jablan (jablans@yahoo.com).
See also Extending/Modifying KnotTheory`#Lessons learnt from integrating LinKnot` for technical details on how LinKnot` and KnotTheory` were integrated.