note 59282 added to ref.math
| From: | daniel at g-loc dot org | Date: | Thu, 01 Dec 2005 18:01:46 +0000 |
| Subject: | note 59282 added to ref.math | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-99424@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!
----
Manual Page -- http://www.php.net/manual/en/ref.math.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+59282
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+59282&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+59282&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+59282&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+59282&report=yes&reason=useless
Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+59282&report=yes&reason=non-english
Delete: already in docs -- http://master.php.net/manage/user-notes.php?action=delete+59282&report=yes&reason=already+in+docs
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+59282&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+59282&report=yes
Search -- http://master.php.net/manage/user-notes.php