Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

I wanted to calculate a result value from 3 fields using an equation.

VBScript or Python codes are also accepted..:-)

enter image description here

the equation is RESULT= [(R^2/3)(S^1/2)]/n..

share|improve this question
1  
is that R to the power of 2 divided by 3?? Not sure what the ^ operator is here. –  Michael Miles-Stimson Nov 11 '14 at 4:20
1  
Would you be able to edit your question to show what you have already tried in the Field Calculator, please? –  PolyGeo Nov 11 '14 at 4:44
    
@MichaelMiles-Stimson: Yes, it is exponential form.. –  almer_cris Nov 11 '14 at 5:42
    
@PolyGeo: i have not tried anything yet because it looks like python/vb script and I am a newbee in coding. I have search many sites and I think coding is really needed here to solve my problem. hope you can help me. –  almer_cris Nov 11 '14 at 5:48

1 Answer 1

Your expression looks incomplete but I am assuming that the first part of it is trying to find the square of the cube root.

My test below on that when R had a value of 8 returned the expected value of 4 to the RESULT field

RESULT =

[R] ^ ( 2 / 3 )

The above worked when the parser is set to VBScript.

With Python, there is hopefully an easier way but I got it to work with:

RESULT =

math.pow(!R!,( float(2) / float(3) ))

My testing used ArcGIS 10.2.2 for Desktop on a file geodatabase feature class.

Perhaps your whole expression in VBScript is:

([R]^(2/3))*([S]^(1/2))/[n]
share|improve this answer
    
thanks a lot..u really help me solve my problem..till next time..:-) –  almer_cris Nov 12 '14 at 1:22

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.