intersection Function

public function intersection(c1, c2, x0) result(x)

Compute the intersection of two curves.

Arguments

Type IntentOptional Attributes Name
type(curve_t), intent(in) :: c1

The first curve

type(curve_t), intent(in) :: c2

The second curve

real(kind=rkind), intent(in), optional :: x0(:)

The initial guess for the intersection

Return Value real(kind=rkind), allocatable, (:)

The intersection point