Go Back  PPRuNe Forums > Flight Deck Forums > Tech Log
Reload this Page >

Spreadsheet calculation


Notices
Tech Log The very best in practical technical discussion on the web

Spreadsheet calculation

Old 27th September 2002 | 17:06
  #1 (permalink)  
Thread Starter
25 Anniversary
 
Joined: Jun 1999
Posts: 64
Likes: 0
From: UK
Question Spreadsheet calculation

All I am trying to do is put in equation form the angle between wind and a track in order to calculate h/w and t/w components.

For example, wind 270, track 340 is 70 deg off. It works like (W-T)*-1 or wind 270, track 020 is 110 deg off but it would be 250 so a 180 has to be thrown in. I ended up with so many different permutations it made my head spin and there has to be an easier way.

I never was any good at programming logic perhaps one of you can come up with a simple "if X then Y=Z" kind of thing.

Thanks in advance.
SS
SkidSolo is offline  
Old 27th September 2002 | 19:11
  #2 (permalink)  
 
Joined: Nov 2001
Posts: 2,397
Likes: 0
From: Inside the M25
I think you need to start from the most complex case, and reduce it. Somebody correct me if I go wrong - my maths is pretty underused these days.

Given a triangle with sides of lengths a,b,c and an angle between a and b of C (that ought to be theta or at least something greek, but there you go), then

c squared equals a squared plus b squared minus two times a times be times cosine x.

Also, if you have a triangle with sides a, b, c opposite vertices A, B, C, then:

a divided by sine A equals b divided by sine B equals c divided by sine C.

So if you know your wind vector and your heading vector and speed, you know the lengths of two sides and the difference between the angles of two sides. From this, you can work out everything else.

If you are using sines and cosines, you don't need to worry about whether one angle is more than another, because most calculations aren't fussy about getting an angle in the range 0 to 360 - they will work it out modulo 360. If it is fussy, then do the modulo 360 bit yourself first. If it insists on radians (does anything, these days?) then do that bit first.


Alternatively, use a flight computer.....
Young Paul is offline  
Old 27th September 2002 | 19:23
  #3 (permalink)  
 
Joined: Feb 2002
Posts: 247
Likes: 0
From: oxford
You will find your answer here .

I recommend it. It's very good.
oxford blue is offline  
Old 27th September 2002 | 22:07
  #4 (permalink)  
 
Joined: May 2002
Posts: 1,704
Likes: 1
From: Who can say?
Skid, if you want to email me, I have an XL spreadsheet that does it.
Captain Stable is offline  

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Thread Tools
Search this Thread

Contact Us - Archive - Advertising - Cookie Policy - Privacy Statement - Terms of Service

Copyright © 2026 MH Sub I, LLC dba Internet Brands. All rights reserved. Use of this site indicates your consent to the Terms of Use.