<< NL_F_Binning NL_F: Function NL_F_ColinearSet >>

NARVAL >> NL_F: Function > NL_F_Bisection

NL_F_Bisection

Perform the bisection between two points.

Calling Sequence

[a,b] = NL_F_Bisection(x1,y1,x2,y2)

Arguments

x1 :

x-coordinate of the first point.

y1 :

y-coordinate of the first point.

x2 :

x-coordinate of the second point.

y2 :

y-coordinate of the second point.

a :

Slope.

b :

y-intercept.

Description

NL_F_Bisection computes the parameters y=a.x+b of the bisection of the two points (x1,y1) and (x2,y2). If y1=y2, then a=[] and b=[]. The bisection is defined by y=y1.

Examples

x1=100;
y1=100;
x2=200;
y2=200;
[a,b]=NL_F_Bisection(x1,y1,x2,y2);//application of NL_F_Bisection

Report an issue
<< NL_F_Binning NL_F: Function NL_F_ColinearSet >>