Using Applescript to do math

Hi -

Apologies if this seems basic, but I have a math question. How do I get the square root of a real within applescript? I see the various addition, subtraction, multiplication, and division operators, but I’m not sure what combination to use them in.

Thanks for any help or advice you can offer.

-Derek :?

This appears to work (OS X 10.2.6).

set num_ to 25.1
set sqrt_ to num_ ^ 0.5

– Rob (not a math expert)

9 ^ 0.5 → 3.0 = square root
27 ^ 0.3333333 → cube root