Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Consider the first plot line,

p1 = plot(rs(exx = 4, x = 0.0) , (x, 0, .2), color='red' )

And let us see what we are plotting here:

sage: rs(exx = 4, x = 0.0)
(sqrt(-kx^2 + 4) - sqrt(-kx^2 + 1))/(sqrt(-kx^2 + 4) + sqrt(-kx^2 + 1))

Above, kx is a variable, there is no meaning for plotting the above expression for $x$ (which no longer appears, it was silenced to zero, but) running from $0$ to $0.2$.

We have even less chances to plot something for the same $x$-interval for the ser-plot:

sage: ser(exx = 4, x = 0.0)
-(-I*sqrt(kx^2 - 4) + sqrt(-kx^2 + 1))/(I*sqrt(kx^2 - 4) + sqrt(-kx^2 + 1))

Here we can push the $I=\sqrt{-1}$ inside the radicals and compare, getting the same expression from an algebraic point of view.

But why do we plot these expressions?