Jarvis Posted October 12, 2011 Posted October 12, 2011 Is there a way in filemaker to calculate angle of slope from rise & run?
comment Posted October 12, 2011 Posted October 12, 2011 http://en.wikipedia.org/wiki/Trigonometric_functions#Sine.2C_cosine.2C_and_tangent
Jarvis Posted October 12, 2011 Author Posted October 12, 2011 Thanks Comment for the wikipedia link. What I was really hoping for was that somebody could help me with the code for this problem. I'm a cabinetmaker, not a mathematician. I do, however, need to be able to build angled cabinets from time to time and would like to be able to do this without having to actually learn trigonometry.
doughemi Posted October 12, 2011 Posted October 12, 2011 Create number fields Run and Rise. Create a calculation field angle = Atan(Run/Rise)*57.2958. (the 57.2958 is required because the atan function in FileMaker returns the angle in radians.) If you only know the length and run substitute Asin(Run/Length) in the above calc. If you only know the length and rise, substitute Acos(Run/Length)
doughemi Posted October 12, 2011 Posted October 12, 2011 Or, putting them all together, angle = Case( not IsEmpty(Run) and not IsEmpty(Rise); Atan(Run/Rise)*57.2958; not IsEmpty(Run) and not IsEmpty(Length); Asin(Run/Length)*57.2958; not IsEmpty(Rise) and not IsEmpty(Length); Acos(Rise/Length)*57.2958; )
comment Posted October 12, 2011 Posted October 12, 2011 (the 57.2958 is required because the atan function in FileMaker returns the angle in radians.) How about: Degrees ( Atan ( Run / Rise ) ) I'm a cabinetmaker, not a mathematician. I do, however, need to be able to build angled cabinets from time to time and would like to be able to do this without having to actually learn trigonometry. IIUC, this is more about designing than building - and I'd consider basic trigonometry as one of the required skills.
doughemi Posted October 12, 2011 Posted October 12, 2011 Degrees ( Atan ( Run / Rise ) ) Another FM function I didn't know existed! Thanks.
Jarvis Posted October 12, 2011 Author Posted October 12, 2011 Thanks guys! I'll noodle on it from here.
Recommended Posts
This topic is 4824 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now