[R] Find Crossover Points of Two Spline Functions
Ben Bolker
bbolker at gmail.com
Tue Sep 29 00:02:20 CEST 2015
Bert Gunter <bgunter.4567 <at> gmail.com> writes:
>
> Use ?uniroot to do it numerically instead of polyroot()?
>
> Cheers,
> Bert
> Bert Gunter
The problem with uniroot() is that we don't know how many intersections/
roots we might be looking for. With polyroot(), we know that there can
be at most 3 roots that lie within a particular cubic segment.
(I'm not arguing that doing this is necessarily a good idea in
the larger context.)
More information about the R-help
mailing list