Another new feature of the library is its ability to determine the geometry of curves specified as the solution set of some equations. In particular, the library can find where the leading coefficients of these equations vanish, and whether the curve is locally real at those points or not. An example follows.
Consider the equations and . The surfaces defined by them look as follows; this is purely for illustration and the method of drawing it won't be explained here. The first equation's surface is rendered in red, the second in blue, and the curve that is their intersection in green. You can also see a transparent black plane at , and the two intersection points of the curve with this plane in black; these are explained below.
If we view the variables as having the order , then the leading coefficients of these equations are 1 and , respectively. The first coefficient doesn't vanish; the second vanishes at . The LimitPoints command can find the intersections of the curve, that is, the intersection of the red and blue surfaces. By default, this computation is done over the complex numbers.
We see that there are two such limit points. Indeed, if we evaluate the polynomials defining the equations at these points, they vanish. These are the two points shown in the graph above.
It looks like there is a cusp at the origin: the curve is not smooth there. We can confirm that this is indeed the case:
By using the option, we include only points where the curve is locally smooth in real space: where it locally has a Puiseux series with real coefficients. This computation uses the underlying command RegularChainBranches, which returns a truncated Puiseux series at each of these points for all branches.
The first two results each contain a function which represents (or ). We see that they have nonreal coefficients.
The last result is a truncated Puiseux series with only real coefficients. One might wonder if there are later terms of this series that have nonreal coefficients; but the algorithm used guarantees that this is not the case. The command can be instructed to return only truncated Puiseux series for real branches, as follows:
When we examine it in the plot, we can see that this is locally a good approximation to the intersection curve for real values of the parameter, but the other two branches are not. Indeed, the -component of the curve is nonnegative, whereas the curve is present only for . When we re-parametrize these nonreal branches by the change of variables , we get the following. (The call to converts the function into .)
Now the leading coefficient for each of the coordinates is real. Of course the (truncated) series itself can still not be embedded in real space, but we will be able to examine its real part, which should approximate the series well for small values of . Below, this real part of the truncated Puiseux series is shown in purple and the real truncated Puiseux series in pink.