Jump to content

ARC Formulas


David Bethel

Recommended Posts

In plain Autolisp, I'm needing to calculate some arc info:

 

I have:

 

1) A known ( fixed ) chord length AB ( 84" )

2) A specified segment height ED ( from 1" to 42" )

 

I looking for the ARC radius OA / OB and the central angle AOB

 

 

I have a lot of ARC formulas but not these 2. Thanks -David

circsect.gif

Link to comment
Share on other sites

(defun rad ( chrd segh )
 (/ (+ (* segh segh) (/ (* chrd chrd) 4.)) (* 2. segh))
)

(defun ang ( chrd segh )
 (* 2. (asin (/ chrd (* 2. (rad chrd segh)))))
)

(defun asin ( x )
 (if (<= (abs x) 1.0)
   (if (equal (abs x) 1.0 1e-
     (* x pi 0.5)
     (atan (/ x (sqrt (- 1.0 (* x x)))))
   )
 )
)

Link to comment
Share on other sites

Mine uses rearrangements of the identities shown on this (badly drawn) diagram:

 

ArcFormulas.png

 

s = segment height
r = radius
c = chord length
a = angle

----------------------------------------------
Radius
----------------------------------------------
s = r - sqrt(r^2 - (c/2)^2)

(r - s)^2 = r^2 - c^2/4

r^2 - 2rs + s^2 = r^2 - c^2/4

r = (s^2 + c^2/4) / 2s

----------------------------------------------
Angle
----------------------------------------------
c/2 = r sin (a/2)

a/2 = arcsin (c/2r)

a = 2 arcsin (c/2r)


Link to comment
Share on other sites

You might not want to know this, but the length ED is also known as the Sagitta, from the Latin word for arrow. (It looks like the arrow in the bow AB).

 

This length ED is also called a Versine.

 

All these names help when searching the web for information :D

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...