default
{
on_rez(integer total_number)
{
llSay(0, "llPow positive exponent. Base: 2 Exp: 4");
llSay(0, "Result: " + (string)llPow(2., 4.) + " Expected: 16.000000");
llSay(0, "llPow zero exponent. Base: 2 Exp: 0");
llSay(0, "Result: " + (string)llPow(2., 0.) + " Expected 1.0000000");
llSay(0, "llPow negative exponent. Base: 2 Exp: -4");
llSay(0, "Result: " + (string)llPow(2., -4.) + " Expected 0.062500");
llSay(0, "llPow negative base positive exponent. Base: -2 Exp: 4");
llSay(0, "Result: " + (string)llPow(-2., 4.) + " Expected 16.000000");
llSay(0, "llPow negative base zero exponent. Base: -2 Exp: 0");
llSay(0, "Result: " + (string)llPow(-2., 0.) + " Expected 1.000000");
llSay(0, "llPow negative base negative exponent. Base: -2 Exp: -4");
llSay(0, "Result: " + (string)llPow(-2., -4.) + " Expected 0.062500");
llSay(0, "llPow negative base fractional exponent. Base: -3 Exp: -4.111111");
llSay(0, "Results: " + " 0 " + " Expected: 0 & MATH ERROR");
llSay(0, "Results: " + (string)((-3.), -4.111111));
}
}