I have the function 1./(1-(x).^3)-1./(1+(x).^3) I need to rewrite this function so that it works well when I plot it on Matlab on the interval x=-0.00001:0.0000001:0.00001. So far, the best thing I have is $$\frac{(2/x^3)}{(1/x^6)-1},$$ but this has a discontinuity near $x=0$. I believe the problem lies in subtracting, but I can't figure out how to get rid of that $-1$. I've replaced all other subtraction with division, and this equation works a lot better than the original.

edited second function for clarity.

long doubletype (128-bit floating point), but I have never looked into whether such a type is available in Matlab. – AnonSubmitter85 Feb 18 '14 at 07:37x=-0.00001:0.0000001:0.00001, y=(2./x.^3)./(1./x.^6-1), plot(x,y) – Alt Feb 18 '14 at 07:42