i want to get a window function which is
define PI 3.14159265358979323846264338327950288419716939937510582097494459230781640628620899
window function = sin(pixel / (image width - 1) * PI)^2
However, when i tried to do it, the left side of '^' can not be double type. Is there any suggestion for this situation?
Also the function means hann window i guess. Is there any window function which can use from library like that equation??