Select to view content in your preferred language

Arccos in Field Calculator

744
1
Jump to solution
01-26-2018 12:57 PM
JanTichy
Emerging 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]) )

 

  

0 Kudos
1 Solution

Accepted Solutions
DanPatterson_Retired
MVP Emeritus
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
DanPatterson_Retired
MVP Emeritus
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