The "Goto7" redirects to the main menu page. I only put a snippet of the entire code here.

Would writing the equation something like this work?

If C-A=0

Then

(C-A)²+(D-B)²→X

√(X)→Y

Disp "SQRT",X

Disp "DISTANCE REAL",Y

Else

(C-A)²+(D-B)²→X

√(X)→Y

(D-B)/(C-A)→Z

Disp "SQRT",X

Disp "DISTANCE REAL",Y

Disp "SLOPE",Z

Thank you!

]]>(Also, what Lbl is "Goto 7" directed at in your code? I didn't notice a "Lbl 7" anywhere.) ]]>

This is using the distance formula (line 7), then the slope formula (line 8).

Thank you!

Here's the code:

Lbl 1

ClrHome

Disp "Point A"

Prompt A,B

Disp "Point B"

Prompt C,D

(C-A)²+(D-B)²→X

√(X)→Y

(D-B)/(C-A)→Z

If Z>0

Disp "SQRT",X

Disp "DISTANCE REAL",Y

Disp "SLOPE",Z

Else

Disp "SQRT",X

Disp "DISTANCE REAL",Y

Pause

Goto 7