Ruby program to demonstrate the phase() function

bookmark


num1 = 10;
num2 = -10;

print num1.phase(),"\n";
print num2.phase(),"\n";

 


Output:

0
3.141592653589793