Jump to content

Recommended Posts

Posted

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

Posted
(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)))))
   )
 )
)

Posted

Thanks !

 

I was leaning to the perpendiculars of AD and BD to find the center. Kind of a klulge to say the least. -David

Posted

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)


Posted

Thanks, I'll bookmark this one

 

And the final production use is the radius top on the end cabinets. -David

ar-mohgr.jpg

Posted

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

Posted

Yes,

 

I saw that on 1728.com where I snatched the image from. But then I'm not that good at Latin . -David

Posted

Another reason to bookmark this 1

 

secant squared + cosecant squared = tangent + cotangent squared

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...