Arccos in Field Calculator

190
1
Jump to solution
01-26-2018 12:57 PM
Highlighted
New Contributor

Hi, I need to calculate this formula in Field Calculator. Should be pretty easy, but I´ve never worked in Python. So I will be very grateful if someone could me write the input. Thanks a lot! Jan

arccos ( ([Field_A]^2 + [Field_B]^2 - [Field_C]^2) / (2*[Field_A]*[Field_B]) )

 

  

Reply
0 Kudos
1 Solution

Accepted Solutions
Highlighted
MVP Esteemed Contributor
math.acos((!Field_A!**2 + !Field_B!**2 - !Field_C!**2) / (2.0 * !Field_A! * !Field_B!))

# --- python parser... I think 'math' is builtin to the field calculator

View solution in original post

1 Reply
Highlighted
MVP Esteemed Contributor
math.acos((!Field_A!**2 + !Field_B!**2 - !Field_C!**2) / (2.0 * !Field_A! * !Field_B!))

# --- python parser... I think 'math' is builtin to the field calculator

View solution in original post