[Flashforth-devel] User Cfunction with double math returning 2 float results
Brought to you by:
oh2aun
From: om1zz <om...@vo...> - 2015-06-10 15:19:15
|
Hi, in https://github.com/igor-m/EXPERIMENTAL_ZZ/blob/master/examples/Cfun/Cdistbear1.c you may find a demo which calculates distance(m) and bearing(deg) of two points on Earth called as a single user Cfunction, with float arguments (lats, longs), calculating with doubles, and returning 2 float results - distance and initial bearing. 50.0e 15.0e 60.0e 80.0e distbear fs. fe. 4.10780e6 48.9369e0 ok<#,ram> 50.0e 15.0e -60.0e -170.0e distbear fs. fe. 1.88591e7 166.025e0 ok<#,ram> Igor |