Polynomial knots in R

87 views Asked by At

This question is about a possible way to graphically represent knot polynomials as given by expressions here and here in R.

Unfortunately I didn`t get very far since my math knowledge is not so good. This is what I have tried

phi <- seq(-30, 30, len=1001) 
fx <- phi^5 - 28*phi  #these are the polynomials from the website above
fy <- phi^7 - 32*phi^3

which gives, when using plot(fx,fy) r plot of the above function

and I guess it should have given the figure-eight-knot. I can find zeroes of the above functions over the specified interval, and it all seems ok,since both functions have pairs of very similar zero values as can be seen in the knot diagram. Any ideas?

2

There are 2 answers

4
Roland On

Your code is correct. You just need to zoom in:

phi <- seq(-2.6, 2.6, len=1e5) 
fx <- phi^5 - 28*phi  
fy <- phi^7 - 32*phi^3

plot(fx, fy, type="l")

enter image description here

0
JPS On

Try:

phi <- seq(-3, 3, len=1001) 
fx <- phi^5 - 28*phi  
fy <- phi^7 - 32*phi^3
plot(fx,fy,xlim=c(-50,50),ylim=c(-150,150))

You have to adjust the limits of your axis. HF