OLD Texas Pgm

If you have questions about any aspect of QBasic programming, or would like to help fellow programmers solve their problems, check out this board!

Moderators: Pete, Mods

Post Reply
LEGRAND
Coder
Posts: 49
Joined: Wed Jul 30, 2008 7:57 am

OLD Texas Pgm

Post by LEGRAND »

I find the following formula from an old Texas pgr for TI 59

havD =hav(Ls-Ld)cos(ls).cos(ld)+hav(ls-ld)

For your info, ls,ld are the starting and destination latitudes,
while Ls and Ld are the starting and destination longitudes
D is the great circle distance

I want to write that in basic but what the hell this "hav" can mean?
Can somebody explains? Thanks in advance.
User avatar
bongomeno
Veteran
Posts: 266
Joined: Wed Dec 10, 2008 9:08 am
Location: Arizona
Contact:

Post by bongomeno »

wow, a TI-59? NICE!

I only know TI BASIC for the 8X series, but most of the people here only know Qbasic or similar.

havD is probably a special variable that when changes, you get some special output. like on a graphing calc, you can change variables that affect the graph output.

I dont really know anything about it though... :?
LEGRAND
Coder
Posts: 49
Joined: Wed Jul 30, 2008 7:57 am

hav mistery

Post by LEGRAND »

Thanks for answer. I thought the meaning was something like absolute value but apparently no. h for hemispherical? no something about graph y'are right.
User avatar
burger2227
Veteran
Posts: 2466
Joined: Mon Aug 21, 2006 12:40 am
Location: Pittsburgh, PA

Post by burger2227 »

Try hexadecimal value: &HD in Qbasic

A = 10
B = 11
C = 12
D = 13
E = 14
F = 15

1 thru 9 are normal decimal values based on 0 thru 15 or 16 digits.
Please acknowledge and thank members who answer your questions!
QB64 is a FREE QBasic compiler for WIN, MAC(OSX) and LINUX : https://www.qb64.org/forum/index.php
Get my Q-Basics demonstrator: https://www.dropbox.com/s/fdmgp91d6h8ps ... s.zip?dl=0
Post Reply