Original User: Lynn_Carlson

I would like to assign values greater than 350 with the values of 1 and the values less than 350 from the equation below where x= original values and y=the output value

y=1-cos^2(x/350*pi/2)

Thus, using Single Output Map Algebra the equation I am trying to write is:

con(x<350, 1-cos(x/350*RAD(90))*cos(x/350*RAD(90)),1)

where x is the original raster layer.

However this produces an error message. After playing around with it, I found that once I add the "divided by 350" the function no longer works. How do I solve this problem? What is the correct syntax?

ArcGIS 9.3.1 with Spatial Analyst

Thank you

I would like to assign values greater than 350 with the values of 1 and the values less than 350 from the equation below where x= original values and y=the output value

y=1-cos^2(x/350*pi/2)

Thus, using Single Output Map Algebra the equation I am trying to write is:

con(x<350, 1-cos(x/350*RAD(90))*cos(x/350*RAD(90)),1)

where x is the original raster layer.

However this produces an error message. After playing around with it, I found that once I add the "divided by 350" the function no longer works. How do I solve this problem? What is the correct syntax?

ArcGIS 9.3.1 with Spatial Analyst

Thank you

BTW, it's simpler (and more accurate) to square the sine rather than subtract the square of the cosine from 1: remember, 1 - cos^2(x) = sin^2(x).