Ruby program to demonstrate the phase() function
num1 = 10;
num2 = -10;
print num1.phase(),"\n";
print num2.phase(),"\n";
Output:
0
3.141592653589793
num1 = 10;
num2 = -10;
print num1.phase(),"\n";
print num2.phase(),"\n";
Output:
0
3.141592653589793