Note: You must be registered in order to post a reply. To register, click here. Registration is FREE!
T O P I C R E V I E W
brenowit@a
Posted - 04/18/2003 : 2:05:48 PM Hi, I am trying to convert this fortran language defined function that fits two straight lines into a x intercept. I was wondering if you can help with this. The code for fortran is below.
cvaxFTN7X,L Function FX (ANS, X, Y, IERR, N)
REAL ANS (4),X(3) real M1,m2,B1,b2,xbr
M1 = ANS (1) B1 = ANS (2) m2 = ans (3) b2 = ans (4)
xbr = (b2-b1)/(m1-m2)
IF (X(1).LT.xbr) then FX = B1 + M1 * X(1) ELSE FX = b2 + m2 * X(1) ENDIF