Let’s say you have some nonlinear function that you plug into a root solver to get all the roots

// where the maximum number of real roots possible <= `N`

(i.e. `N`

= 3)

Then you sweep this function over `M`

other values to get an array of `M`

root lists (each of size `0`

to `N`

).

Is there a way to automatically distinguish the families of roots (i.e. assuming there are at most N families)

Through pictures,

- can you create separate lines for the two families below
- so you don’t have a saw-tooth looking function?

Thanks!