Sample 3 using a function: cubicRoot(x)
Author: kegasaExecutions: 21
※ This library was created by a member. This site is not responsible for its content.
function cubicRoot(x)
{
if (x > 0.0) {
return x^(1/3);
} else {
return -(-x)^(1/3);
}
}
y = cubicRoot(x);
print(y);
{
if (x > 0.0) {
return x^(1/3);
} else {
return -(-x)^(1/3);
}
}
y = cubicRoot(x);
print(y);
| y |
No customer feedback for this calculation yet.
cubicRoot(x)