Question about math power function

I want to make a function like y= (1 - x^z), where both x and z are user input values. How is that possible?