The Origin Forum
File Exchange
Try Origin for Free
The Origin Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ | Send File to Tech support
 All Forums
 Origin Forum for Programming
 LabTalk Forum
 Fortran to LabTalk

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Anti-Spam Code:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkUpload FileInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

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

RETURN
END

The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000