note 59282 modified in ref.math by felipe

From: Date: Mon, 04 Feb 2008 20:25:01 +0000
Subject: note 59282 modified in ref.math by felipe
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-135772@lists.php.net to get a copy of this message
If you're an aviator and needs to calculate windcorrection angles and groundspeed (e.g. during flightplanning) this can be very useful. $windcorrection = rad2deg(asin((($windspeed * (sin(deg2rad($tt - ($winddirection-180))))/$tas)))); $groundspeed = $tas*cos(deg2rad($windcorrection)) + $windspeed*cos(deg2rad($tt-($winddirection-180))); You can probably write these lines more beautiful, but they work! --was-- If you´re an aviator and needs to calculate windcorrection angles and groundspeed (e.g. during flightplanning) this can be very useful. $windcorrection = rad2deg(asin((($windspeed * (sin(deg2rad($tt - ($winddirection-180))))/$tas)))); $groundspeed = $tas*cos(deg2rad($windcorrection)) + $windspeed*cos(deg2rad($tt-($winddirection-180))); You can probably write these lines more beautiful, but they work! http://php.net/manual/en/ref.math.php

« previous php.notes (#135772) next »