# How do I calculate with square numbers in ArcGIS Pro with Raster Calculator

595
2
05-12-2023 12:57 PM
New Contributor

Hello everybody,

i'm trying to do a compromise programming by using the raster calculator.

Therefor i already rastered and reclassifed my data to do the calculation via raster calculator.

The formula i would like to use is the following:

For P there are 3 different numbers i would like to use: 1, 2 and 10.

Actually u can exclude the denominator because it is 1-0=1.

By calculating with P equal to 1 i get the results i want to:

with the value of

But if i try to use p as equal to 2 my results are disappointing.

With the value of

I have tried using the ^ symbole, aswell as square(), and multiplying the raster by itself but the results are still the same.

Does anybody know on how to use the square numbers reasonably?

PS:

This is acutaly the command im using in raster calculator:

1 Solution

Accepted Solutions
MVP Frequent Contributor
``````#Square
Power(inRaster, 2.0)

#Cube
Power(inRaster, 3.0)

#Square root
Power(inRaster, 0.5)

#Inverse
Power(inRaster, -1.0)

#etc.``````
2 Replies
MVP Frequent Contributor
``````#Square
Power(inRaster, 2.0)

#Cube
Power(inRaster, 3.0)

#Square root
Power(inRaster, 0.5)

#Inverse
Power(inRaster, -1.0)

#etc.``````
New Contributor

Thank you! It worked!