Author Topic: Need algorithms for a ballistics calculator  (Read 1456 times)

CNYCacher

  • friend
  • Senior Member
  • ***
  • Posts: 4,438
Need algorithms for a ballistics calculator
« on: August 02, 2009, 12:53:18 AM »
I am of the mind to program a ballistics calculator, but I need to get a hold of the maths involved.  Does anyone know how this is done?
On two occasions, I have been asked [by members of Parliament], "Pray, Mr. Babbage, if you put into the machine wrong figures, will the right answers come out?" I am not able to rightly apprehend the kind of confusion of ideas that could provoke such a question.
Charles Babbage

Nick1911

  • Administrator
  • Senior Member
  • *****
  • Posts: 8,492
Re: Need algorithms for a ballistics calculator
« Reply #1 on: August 02, 2009, 01:03:40 AM »
Can you better describe what the inputs and outputs you're looking for are?

CNYCacher

  • friend
  • Senior Member
  • ***
  • Posts: 4,438
Re: Need algorithms for a ballistics calculator
« Reply #2 on: August 02, 2009, 01:19:48 AM »
Yeah sure.

http://www.handloads.com/calc/

That website takes a bunch of inputs and by some kind of magic creates the ballistics table.  I just want to know the math involved in that magic.

On two occasions, I have been asked [by members of Parliament], "Pray, Mr. Babbage, if you put into the machine wrong figures, will the right answers come out?" I am not able to rightly apprehend the kind of confusion of ideas that could provoke such a question.
Charles Babbage

oldfart

  • New Member
  • Posts: 72
Re: Need algorithms for a ballistics calculator
« Reply #3 on: August 02, 2009, 02:31:24 AM »
Try here:www.jacksonrifles.com

I think you can figure it out from what is shown.

zahc

  • friend
  • Senior Member
  • ***
  • Posts: 5,814
Re: Need algorithms for a ballistics calculator
« Reply #4 on: August 02, 2009, 10:45:14 AM »
As far as I know ballistics as a whole still relies heavily on lookup tables. Trying to use air drag models and so on is harder and with worse results. Especially on bullets that go through the supersonic barrier at some point.
Maybe a rare occurence, but then you only have to get murdered once to ruin your whole day.
--Tallpine

GigaBuist

  • friends
  • Senior Member
  • ***
  • Posts: 4,345
    • http://www.justinbuist.org/blog/
Re: Need algorithms for a ballistics calculator
« Reply #5 on: August 02, 2009, 01:19:42 PM »
You could ask Joe Huffman (http://blog.joehuffman.org/).  He's the author of Modern Ballistics and might be willing to point you in the right direction.

tyme

  • expat
  • friend
  • Senior Member
  • ***
  • Posts: 1,056
  • Did you know that dolphins are just gay sharks?
    • TFL Library
Re: Need algorithms for a ballistics calculator
« Reply #6 on: August 02, 2009, 02:34:14 PM »
CNYCacher, that page uses javascript.

http://www.handloads.com/calc/bal.js
Support Range Voting.
End Software Patents

"Four people are dead.  There isn't time to talk to the police."  --Sherlock (BBC)

Gewehr98

  • friend
  • Senior Member
  • ***
  • Posts: 11,010
  • Yee-haa!
    • Neural Misfires (Blog)
Re: Need algorithms for a ballistics calculator
« Reply #7 on: August 02, 2009, 02:44:00 PM »
I have the BASIC code for one in my pocket NRA Firearms Fact Book, 3rd Edition, circa 1989.

I was going to type it into something like Yabasic or Liberty BASIC. 
"Bother", said Pooh, as he chambered another round...

http://neuralmisfires.blogspot.com

"Never squat with your spurs on!"

oldfart

  • New Member
  • Posts: 72
Re: Need algorithms for a ballistics calculator
« Reply #8 on: August 02, 2009, 03:28:22 PM »
There are lots of programs on the 'net, some to be used, some to be copied and some to be bought.  They all give slightly different results.  I tried the one in the NRA book and - while it worked okay - it didn't give me the results I saw on the target.  Besides, that's a helluva lot of typing!

The Pesja program that I found at www.jacksonrifles.com is a spreadsheet which allows you to change any variable and see the result immediately.  With it I was able to hold the velocity (which I had measured), the bullet weight (a given) and vary the B.C. to make the 'drops' match what I was actually getting. 

We tend to believe the B.C. printed on the bullet box when it really varies from one barrel to the next.  I once asked the Nosler rep how they determined B.C.s and was told simply that they had a "ballistics laboratory."  What that told me was they were using physical measurements of the bullet to determine the B.C. instead of actually shooting over a measured range.  My "amended" B.C.s are close to what the manufacturers claim but different enough to work better. 

For instance:  I can determine a new B.C. for a bullet by matching the 'drops' at 100, 600, 900 and 1000 yards and then more closely determine what to dial in at 200, 300 or 500 yards.  The neat thing is - it works!

A bit of digging also allowed gave me the formulas used in the program which then led me to enter similar formulas into a spreadsheet program on a small, portable computer I own.  Now I have the capability of shooting accurately at ranges I've never tried before.  All I need is a quick 'fix' with a laser rangefinder, 3 seconds of computing and adjust the scope.  Is it right every time?  Hell no, but neither am I.  Most of my misses aren't due to the rifle, the scope or the computer.  They're caused by the nut behind the buttplate.