Advertisement
makispaiktis

ComplexNumbers App.java

Feb 24th, 2019 (edited)
231
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.34 KB | None | 0 0
  1. public class App {
  2.    
  3.     // Main
  4.     public static void main (String[] args){
  5.        
  6.         Polar pol = new Polar(2 * Math.sqrt(2), Math.PI/4);
  7.         Rectangular rect = new Rectangular(5, 5);
  8.         Polar result = pol.multiplyPolRect(pol, rect);     
  9.         System.out.println("Result r = " + result.r);
  10.         System.out.println("Result argument = " + result.arg);
  11.        
  12.     }
  13.    
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement