matthammer
Pre-takeoff checklist
The slew function.
Not time compression?
The slew function.
So just out of curiosity - How do you find the time to fly to 12+ states in a month between being an enlisted navy man and student?
Hey I found it interesting, and I'm glad you posted. I had never heard that before and I think it's pretty cool.
Were you asking me?
If you were then it's easy, it's my job. In fact, I'm on vacation right now. I'm on a 7 on 7 off schedule so when I take a week off its really 3 weeks off. (the normal week befor and after the vacation work week)
So the map would be more filled in if I were actually working. I'm not sure what the Doritoes guys problem is. I don't think he likes me. Don't tell him I said that...
So.....you're an enlisted navy pilot?
This is about my using the term relative headings in lieu of relative bearings? The nautical forums would be aghast, I'm sure.
Oh, wait...I did use the term 'relative bearing'.
I think it's easier to look at the HSI or DG. No math involved.
But then I once flew an airplane which had one of those vertical card DGs which looked like the compass. That made it difficult, however I don't think there are many DGs out there like that any more.
Code testing for that issue:
Initially it was the use of Cardinal with Heading instead of Point and then Relative with Heading instead of Bearing.
I'm just trying to get all the non standard phraseology you keep making up clear.
What, you haven't seen the collection plate come by yet? Somebody get this man some envelopes!Does someone pay you to be mean or do you just do it for free?
YWI like that! Thanks for posting it!
Settle down. The program was to test and see if Captain's claim was accurate without me sitting here brute-forcing my way through 36 runways by hand. Way faster for me to write the code. I spit out that in a matter of two or three minutes which is why it's not really that efficient.Woah Camel. All stop.
Stop and look at what you're doing. You're writing a big annoying computer program to essentially verify that you can add or subtract 18 or 180 from another number.
You don't even need software or a calculator or even manual math with a pencil and paper. All you need to do is use a compass for a short bit and the numbers you need come to mind without any math being involved. You just know the information.
You're all overthinking a problem that really isn't a problem to start with.
Those brute-force approaches are so inelegant compared to a mathematical proof!Settle down. The program was to test and see if Captain's claim was accurate without me sitting here brute-forcing my way through 36 runways by hand. Way faster for me to write the code. I spit out that in a matter of two or three minutes which is why it's not really that efficient.
I wasn't about to sit here and go through 36 runways and try to write down and keep track of all the possibilites and things that could go wrong with his formula.
It's all relative. My CPU executed the code in milliseconds. By far more time spent firing up the ruby interpreter then executing the ruby code.Those brute-force approaches are so inelegant compared to a mathematical proof!
(thinking of some professors I've had in the math department)
And you spent less time writing the code than formulating a formal proof too. I've meat some PhD's in math who might not accept your proof (I'm not saying they are right either!!!). As your code handled all of the possibilities, it would be acceptable to most of them. Some mathematicians are.....interesting!It's all relative. My CPU executed the code in milliseconds. By far more time spent firing up the ruby interpreter then executing the ruby code.
Interesting yes.
Easier maybe is this :
- + 2 -2 example heading 147 = 1 + 2 = 3, 4 - 2 = 2 = reciprocal 327
- -2 + 2 example heading 347 = 3 - 2 = 1, 4 + 2 = 6 = reciprocal 167
works as far as I know for any heading :wink2:
the simplicity of it would probably make a whole lot more sense if I formatted the math vertically.... but I'm too lazy to rewrite all of that....
Sorry Captain - but your claim is totally wrong. If you actually taught this as a way for someone to find the opposite runway they'd be wrong quite often.
So first off, I'll check to see if your formula is even CORRECT for all the runways.
..and the answer:Code:def runway_recip(runway) recip = runway + 18 recip > 36 ? recip - 36 : recip end def captain_formula(runway) first, last = runway.divmod(10) first + last end #Check Captain's formula runways = 1..36 runways.each { |runway| if captain_formula(runway) == captain_formula(runway_recip(runway)) puts "TRUE Runway #{runway}" else puts "FALSE RUNWAY #{runway}" end }
So it's wrong 6 of the 36 times. That's not so perfect.
But there is another problem. There are other runways that will add up to teh same value basically leaving you with multiple choices or just leading one to think they have the right answer but in reality it's totally wrong.
Example of that: RWY 12, the real reciprocal of that is 30. 1 + 2 = 3. 3 + 0 = 3. Great. But there are other runways that also add up to 3: RWY 3 and RWY 21.
Code testing for that issue:
Results of that code:Code:def runway_recip(runway) recip = runway + 18 recip > 36 ? recip - 36 : recip end def captain_formula(runway) first, last = runway.divmod(10) first + last end runways = 1..36 sums = [] runways.each { |runway| sums << {:runway => runway, :sum => captain_formula(runway)} } runways.each { |runway| potential_runways = [] sums.each { |sum| if sum[:sum] == captain_formula(runway) potential_runways << sum[:runway] end } result = ''; potential_runways.each { |potential| result = "#{result} RWY #{potential}" } puts "RWY #{runway} POTENTIAL MATCHES: #{result}" }
There are so many problems with your formula that it's really not even worth telling someone. They'd need a flow chart to handle the exceptions.
An accurate way, that actually works correctly is:
def runway_recip(runway)
recip = runway + 18
recip > 36 ? recip - 36 : recip
end
Add or subtract 18 and you're there without separating the ones and tens digit...
However, there are only 18 different runway pairs, and that's phenomenally easy to memorize...
And of course adding or subtracting 18 works very well.
Why exactly did Captain resurrect this ancient thread?
I carry a raspberry Pi with a number pad for entering the runway and a digital lcd that outputs the result. It's the only safe way to figure out the opposite runway number.
It's enclosed in a metal box and is definitely the finest metal landing calculator available in the world. If anyone is interested I can sell you one, with your N number engraved into the case, for $399.
(you will need a cigarette power output that can support the 20 amp draw from the landing calculator, my Ruby routine is rather inefficient)
Why exactly did Captain resurrect this ancient thread?
Sorry Captain - but your claim is totally wrong. If you actually taught this as a way for someone to find the opposite runway they'd be wrong quite often.
So first off, I'll check to see if your formula is even CORRECT for all the runways.
Code:def captain_formula(runway) first, last = runway.divmod(10) first + last end
So it's wrong 6 of the 36 times. That's not so perfect.