How does a calculator. calculate roots and powers e.g:

2 ^ 1/2
2 ^ 4
3 ^ 1/3

??