SUBSIM Radio Room Forums



SUBSIM: The Web's #1 resource for all submarine & naval simulations since 1997

Go Back   SUBSIM Radio Room Forums > Silent Hunter 3 - 4 - 5 > Silent Hunter 4: Wolves of the Pacific
Forget password? Reset here

Reply
 
Thread Tools Display Modes
Old 02-25-13, 04:24 PM   #1
Dorjun Driver
Loader
 
Join Date: Jul 2012
Location: The Upper Left Edge
Posts: 81
Downloads: 77
Uploads: 0
Default Zero gyro shooting

This is the quick and not–so–dirty method I use. I've found it quite handy when the tactical situation gets chaotic.

Plug the formula into your fx-5000F or smart phone and Bob’s your uncle. Heck, grab a pack of Lucky’s, a cup a joe, whip out the old slip-stick and do it old school!



Don't let the trigonometry intimidate you. After a couple of patrols you may find yourself solving this in your head.

I hope you find it useful.
Dorjun Driver is offline   Reply With Quote
Old 02-25-13, 06:50 PM   #2
Carrollsue
Old man of the Sea
 
Join Date: Oct 2009
Location: Imus, Philippenes
Posts: 58
Downloads: 1288
Uploads: 0
YEP,yep, steel on steel

Yep, that's it
Carrollsue is offline   Reply With Quote
Old 02-25-13, 08:23 PM   #3
fireftr18
Ocean Warrior
 
Join Date: Feb 2010
Location: Kentucky
Posts: 2,526
Downloads: 77
Uploads: 0
Default

Thanks for all the work.
__________________
Of all the forms of Martial Arts, Karaoke causes the most pain!
fireftr18 is offline   Reply With Quote
Old 02-25-13, 09:51 PM   #4
TorpX
Silent Hunter
 
Join Date: Sep 2010
Posts: 3,975
Downloads: 153
Uploads: 11
Default

I see someone else has been putting their high school geometry to good use.

I like your diagram there. I assume the " fx-5000F " is your calculator. I have used my TI-85 very successfully since my SHCE days, but now, every time I want to add something to it, I have to find something to delete.
TorpX is offline   Reply With Quote
Old 02-25-13, 10:30 PM   #5
Dorjun Driver
Loader
 
Join Date: Jul 2012
Location: The Upper Left Edge
Posts: 81
Downloads: 77
Uploads: 0
Default

Quote:
Originally Posted by TorpX View Post
I see someone else has been putting their high school geometry to good use.
.
.
.
There are some interesting hacks one may use to eliminate the above trig functions altogether. But seeing as this formula is only executed a couple of times per hour, the effort to include them far outweighed their utility.
Dorjun Driver is offline   Reply With Quote
Old 03-05-13, 03:07 PM   #6
Dignan
Seasoned Skipper
 
Join Date: Mar 2008
Posts: 698
Downloads: 262
Uploads: 0
Default

Hey Dorjun. Do you know if the "asin" function is the same as "arcsin"? I'm trying to replicate your formula in a smartphone calculator and it only has an asin function. I'm not getting the correct solution in my tests and I'm wondering if this is why. Math was never my strength.

EDIT: another question... I am building my formula using letters for my variables. V for ship velocity, T for Torp speed. This seems to work fine but for track angle do I need to attach some trig function so the calculator knows its an angle and not a quantity? I've just been using "A" for track angle but I don't know if the formula is understanding this as an angle. Is this my problem by chance?
__________________

Last edited by Dignan; 03-05-13 at 03:53 PM.
Dignan is offline   Reply With Quote
Old 03-05-13, 05:23 PM   #7
Pisces
Silent Hunter
 
Join Date: Dec 2004
Location: AN9771
Posts: 4,892
Downloads: 300
Uploads: 0
Default

Asin, arcsin, sin with superscript -1 aka inv(erse) sine, all means the same function. It calculates an angle that corresponds with the slope of a vertical edge divided by the length of the sloping side (hypotenusa) in a right angled triangle. Though it can also be used with triangles that have no right angle (90 degrees) in them. The 'slope' must have a a value between -1 and 1, or else the angle cannot be calculated. No butts, no ifs, it can't!

In everyday household uses, the sine/cosine/tangent functions are calculated on degrees. As such the reverse kind of function: asin/acos/atan result in degrees. But most scientific calculators also have an option make them use angles in radians. A radian is the angle made when you wrap the radius of a circle around the circumference. Radians are a big thing in engineering and science. It's 57.29577951 degrees, or 180 degrees divided by Pi. 2 Pi radians make a full circle. On Casio calculators there should be a small 3 character abreviation in the top of the display: deg for degrees, rad for radians and gra for gradians. Gradians are a big thing in surveying.

To test your calculator for degree or radian mode: 0.707 asin should result in near 45 degrees, or 0.785398163 radians (=Pi/4), or 50 gradians (90 degrees angle is 100 gradians. The French trying to be funny there.)

So that could be the cause for unexpected results from the formula. Or the order of precedence in arithmetic: multiplication/division precedes adding/subtracting.

Last edited by Pisces; 03-05-13 at 05:33 PM.
Pisces is offline   Reply With Quote
Old 03-05-13, 07:23 PM   #8
Carrollsue
Old man of the Sea
 
Join Date: Oct 2009
Location: Imus, Philippenes
Posts: 58
Downloads: 1288
Uploads: 0
OMG...

Quote:
Originally Posted by Pisces View Post
Asin, arcsin, sin with superscript -1 aka inv(erse) sine, all means the same function. It calculates an angle that corresponds with the slope of a vertical edge divided by the length of the sloping side (hypotenusa) in a right angled triangle. Though it can also be used with triangles that have no right angle (90 degrees) in them. The 'slope' must have a a value between -1 and 1, or else the angle cannot be calculated. No butts, no ifs, it can't!

In everyday household uses, the sine/cosine/tangent functions are calculated on degrees. As such the reverse kind of function: asin/acos/atan result in degrees. But most scientific calculators also have an option make them use angles in radians. A radian is the angle made when you wrap the radius of a circle around the circumference. Radians are a big thing in engineering and science. It's 57.29577951 degrees, or 180 degrees divided by Pi. 2 Pi radians make a full circle. On Casio calculators there should be a small 3 character abreviation in the top of the display: deg for degrees, rad for radians and gra for gradians. Gradians are a big thing in surveying.

To test your calculator for degree or radian mode: 0.707 asin should result in near 45 degrees, or 0.785398163 radians (=Pi/4), or 50 gradians (90 degrees angle is 100 gradians. The French trying to be funny there.)

So that could be the cause for unexpected results from the formula. Or the order of precedence in arithmetic: multiplication/division precedes adding/subtracting.
OMG….you took me back 45years to Trig class, with me with the huh look on my face!!
Thanks
Carrollsue is offline   Reply With Quote
Old 03-05-13, 07:44 PM   #9
Dignan
Seasoned Skipper
 
Join Date: Mar 2008
Posts: 698
Downloads: 262
Uploads: 0
Default

Quote:
Originally Posted by Pisces View Post
Asin, arcsin, sin with superscript -1 aka inv(erse) sine, all means the same function. It calculates an angle that corresponds with the slope of a vertical edge divided by the length of the sloping side (hypotenusa) in a right angled triangle. Though it can also be used with triangles that have no right angle (90 degrees) in them. The 'slope' must have a a value between -1 and 1, or else the angle cannot be calculated. No butts, no ifs, it can't!

In everyday household uses, the sine/cosine/tangent functions are calculated on degrees. As such the reverse kind of function: asin/acos/atan result in degrees. But most scientific calculators also have an option make them use angles in radians. A radian is the angle made when you wrap the radius of a circle around the circumference. Radians are a big thing in engineering and science. It's 57.29577951 degrees, or 180 degrees divided by Pi. 2 Pi radians make a full circle. On Casio calculators there should be a small 3 character abreviation in the top of the display: deg for degrees, rad for radians and gra for gradians. Gradians are a big thing in surveying.

To test your calculator for degree or radian mode: 0.707 asin should result in near 45 degrees, or 0.785398163 radians (=Pi/4), or 50 gradians (90 degrees angle is 100 gradians. The French trying to be funny there.)

So that could be the cause for unexpected results from the formula. Or the order of precedence in arithmetic: multiplication/division precedes adding/subtracting.
<-- is my face right now. I think I am beginning to understand what you are saying. I'm going to re-read this later and try to digest. Thanks for the explanation. So what I've done is plug this formula by Dorjun into an app called MagiCALc. It's a scientific calculator for the iphone. Here's what I've got.

Lead Angle = asin (V sin A / (V ^ 2 + T ^ 2 - 2VT cos A) ^ 1/2)
V= Target speed
T= Torpedo Speed
A= Track angle/Intercept angle.

The program automatically recognizes my variables and asks for input. When I input the following values for each as a test...

V(Target speed) = 9
T (Torp speed) = 30
A (Intercept angle) = 75

...it spits out (= -0.11)
I take this to mean an 11 degree lead angle. Is that how I should be doing this?

I tried it with a different lead angle variable again to be sure.
V(Target speed) = 9
T (Torp speed) = 30
A (Intercept angle) = 135

and it spit out (=0.02). or a 2 degree lead angle
That doesn't seem right to me. Can anyone see what I've done wrong here? Is my formula off? Do I need to make the calculator see my output "Lead Angle" as an angle and not a straight number value or something?

Pisces, thanks again for the trig refresher. While I love playing this game, this has reminded me why I was a "social science" person
.
__________________
Dignan is offline   Reply With Quote
Old 03-05-13, 10:32 PM   #10
Dorjun Driver
Loader
 
Join Date: Jul 2012
Location: The Upper Left Edge
Posts: 81
Downloads: 77
Uploads: 0
Default

Quote:
Originally Posted by Dignan View Post
<-- is my face right now. I think I am beginning to understand what you are saying. I'm going to re-read this later and try to digest. Thanks for the explanation. So what I've done is plug this formula by Dorjun into an app called MagiCALc. It's a scientific calculator for the iphone. Here's what I've got.

Lead Angle = asin (V sin A / (V ^ 2 + T ^ 2 - 2VT cos A) ^ 1/2)
V= Target speed
T= Torpedo Speed
A= Track angle/Intercept angle.

The program automatically recognizes my variables and asks for input. When I input the following values for each as a test...

V(Target speed) = 9
T (Torp speed) = 30
A (Intercept angle) = 75

...it spits out (= -0.11)
I take this to mean an 11 degree lead angle. Is that how I should be doing this?

I tried it with a different lead angle variable again to be sure.
V(Target speed) = 9
T (Torp speed) = 30
A (Intercept angle) = 135

and it spit out (=0.02). or a 2 degree lead angle
That doesn't seem right to me. Can anyone see what I've done wrong here? Is my formula off? Do I need to make the calculator see my output "Lead Angle" as an angle and not a straight number value or something?

Pisces, thanks again for the trig refresher. While I love playing this game, this has reminded me why I was a "social science" person
.
What Pisces said. It appears your calculator wants radians as input. Sooo:

asin (V sin RADIANS(A) / (V ^ 2 + T ^ 2 - 2VT cos RADIANS(A) ^ 1/2)

Or something to that effect. The output of asin(whatever), may be considered a scalar. But it ain't.

Your inputs from above should spit out 17.4 and 9.9 respectively.

Now. Who's working on the Q and D spread calculator?
Dorjun Driver is offline   Reply With Quote
Old 03-05-13, 10:50 PM   #11
Dignan
Seasoned Skipper
 
Join Date: Mar 2008
Posts: 698
Downloads: 262
Uploads: 0
Default

Quote:
Originally Posted by Dorjun Driver View Post
What Pisces said. It appears your calculator wants radians as input. Sooo:

asin (V sin RADIANS(A) / (V ^ 2 + T ^ 2 - 2VT cos RADIANS(A) ^ 1/2)

Or something to that effect. The output of asin(whatever), may be considered a scalar. But it ain't.

Your inputs from above should spit out 17.4 and 9.9 respectively.

Now. Who's working on the Q and D spread calculator?
Ok, thanks. I'll see if I can figure out how to switch it to Radian output.

Before I try, doesn't putting "sin" before my A make it read that input as radians?
__________________

Last edited by Dignan; 03-05-13 at 11:02 PM.
Dignan is offline   Reply With Quote
Old 03-05-13, 11:00 PM   #12
Dorjun Driver
Loader
 
Join Date: Jul 2012
Location: The Upper Left Edge
Posts: 81
Downloads: 77
Uploads: 0
Default

No no no! Just use the radians() function to convert your degree input to the format your calculators sin()/cos() functions want.

While hell is breaking loose we don't want to be dividing stuff by transcendental numbers! Next thing you know, you'll want to compute just how close you can shave that shot. Anywhere in the engine room will be fine. Honest.
Dorjun Driver is offline   Reply With Quote
Old 03-06-13, 08:27 AM   #13
Dignan
Seasoned Skipper
 
Join Date: Mar 2008
Posts: 698
Downloads: 262
Uploads: 0
Default

Quote:
Originally Posted by Dorjun Driver View Post
No no no! Just use the radians() function to convert your degree input to the format your calculators sin()/cos() functions want.

While hell is breaking loose we don't want to be dividing stuff by transcendental numbers! Next thing you know, you'll want to compute just how close you can shave that shot. Anywhere in the engine room will be fine. Honest.
Ha! 10-4 on that. The calculator I'm using removes the parentheses from the sin(A) and Cos(A)when I try to save it. That seems to be my problem. I'll putz with it some more. Thanks
__________________

Last edited by Dignan; 03-06-13 at 09:50 AM.
Dignan is offline   Reply With Quote
Old 03-06-13, 11:19 AM   #14
Pisces
Silent Hunter
 
Join Date: Dec 2004
Location: AN9771
Posts: 4,892
Downloads: 300
Uploads: 0
Default

To switch between degrees and radian and gradians on a Casio you have to press the mode button and then 4, 5, or 6. See the legend under the display.

Quote:
Your inputs from above should spit out 17.4 and 9.9 respectively.
Agreed. If you get a number like 0.11 as a result for degrees, then it will infact be 0.11 degrees, NOT 11.

If it was a logarithmic sliderule then that decimal point fudging might make sense. But that method doesn't hold with a digital scientific calculator.
Pisces is offline   Reply With Quote
Old 03-06-13, 03:45 PM   #15
Pisces
Silent Hunter
 
Join Date: Dec 2004
Location: AN9771
Posts: 4,892
Downloads: 300
Uploads: 0
Default

Oh yeah, I forgot to add:

Dorjun Driver's formula can be significantly simplified if you know the AOB:

Deflection = arcsin ( Vship * sin AOB / Vtorpedo)
Pisces is offline   Reply With Quote
Reply

Tags
torpedo, trigonometry, zero gyro


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

Forum Jump


All times are GMT -5. The time now is 04:55 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright © 1995- 2024 Subsim®
"Subsim" is a registered trademark, all rights reserved.