I'm not a mathematician, but I believe you have to setup a Variable for each element of your formula and give them their initial state of value. Then use the operators to finalize your formula.
Hope this was helpful.
Offline
like rikihero said
instead of " = ", use
set [dlon v] to ((lon2) - (lon1))i believe all your trig functions should be in the operators "drawer". drag in
([abs v] of [10])and select your function from the drop down menu
when [space v] key pressed set [halfdlong v] to (((lon2) - (lon1))/[2]) set [halfdlat v] to (((lat2) - (lat1))/[2]) set [a v] to ((([sin v] of (halfdlat))*([sin v] of (halfdlat)))+((([cos v] of (lat1))*([cos v] of (lat2)))*(([sin v] of (halfdlong))*([sin v] of (halfdlong))))) set [d v] to (([2] * (R)) * ([asin v] of ([sqrt v] of (a))))
Offline