Math2mat

/home/ythoma/docs/math2mat/svn/wp1/framework/m2mGUI/src/m2m/backend/structure/Power.java

Go to the documentation of this file.
00001 
00008 package m2m.backend.structure;
00009 
00010 
00011 public class Power extends Operation {
00012 
00013         final static String OPNAME="power";
00014         
00015         public Power() {
00016                 super(OPNAME);
00017                 this.setName("pow");
00018         }
00019 
00020         @Override
00021         public void copyTo(Element e,Function newFunc) {
00022                 Power pow=(Power)e;
00023                 super.copyTo(pow,newFunc);
00024         }
00025         
00026         @Override
00027         public Element copy(Function newFunc) {
00028                 Power pow=new Power();
00029                 this.copyTo(pow,newFunc);
00030                 return pow;
00031         }
00032         
00033         @Override
00034         public String getOpSymbol() {
00035                 return "^";
00036         }
00037 
00038         @Override
00039         public String toOctave(int level) {
00040                 return super.toOctave(level, "**");
00041         }
00042 
00043 }
 All Classes Namespaces Files Functions Variables Enumerations