Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- * To change this template, choose Tools | Templates
- * and open the template in the editor.
- */
- package polymoialtest;
- /**
- *
- * @author flaarg
- */
- public class Main {
- /**
- * @param args the command line arguments
- */
- public static void main(String[] args) {
- // TODO code application logic here
- Polynomial p = new Polynomial(2);
- Polynomial q = new Polynomial(3);
- p.setCoef(3,0);
- p.setCoef(1,2);
- q.setCoef(4,3);
- q.setCoef(2.5,2);
- q.setCoef(1,1);
- q.setCoef(7,0);
- System.out.println(p);
- System.out.println(q);
- Polynomial r = p.plus(q);
- System.out.println(r);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement