Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Help needed to create a formula pls!!!

How do I create a formula to calculate angles, using half the chord dimension and dividing that by the radius then using second function SIN then multiply the answer by 2.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 690
Default Help needed to create a formula pls!!!

I believe either of these two equations should give you the angle in
Radians. However, I have used c to represent the full length of the cord,
not half of the cord. Adjust if you wish to enter c/2.

Function FindAngle(r, c) As Double
FindAngle = 2 * WorksheetFunction.Asin(c / (2 * r))
End Function

Function FindAngle(r, c) As Double
On Error Resume Next
FindAngle = 2 * Atn(c / (r * Sqr(4 - (c * c) / (r * r))))
' Check 11: "Division by zero" at 90 Degrees
If Err.Number = 11 Then FindAngle = 4 * Atn(1)
End Function

Here were two quick tests at 180 Deg, and 90 Deg.

Sub TestIt()
' 180 Deg, or 2 Pi
Debug.Print FindAngle(4, 8)
' 90 Deg, or Pi
Debug.Print FindAngle(4, 4 * Sqr(2))
End Sub


HTH.
--
Dana DeLouis
Using Windows XP & Office XP
= = = = = = = = = = = = = = = = =


"Mark" wrote in message
...
How do I create a formula to calculate angles, using half the chord

dimension and dividing that by the radius then using second function SIN
then multiply the answer by 2.


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Testers needed for code page : create and mail PDF files in Excel 2007 with the MS PDF add-in Ron de Bruin Excel Discussion (Misc queries) 2 February 28th 09 01:37 PM
Excel formula to copy/paste formula needed please. colwyn Excel Discussion (Misc queries) 4 October 22nd 08 11:27 PM
excel formula to create a cutting list help needed please davers Excel Discussion (Misc queries) 5 August 3rd 07 06:02 PM
Formula needed to create grand totals Daniel LEYVA Excel Worksheet Functions 1 October 14th 06 09:18 AM
VBA Code to create PIVOT from access needed ST Excel Discussion (Misc queries) 0 July 26th 06 03:21 PM


All times are GMT +1. The time now is 11:32 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"