Class ComplexFunctionTable

java.lang.Object
com.singularsys.jep.FunctionTable
com.singularsys.extensions.field.functions.ComplexFunctionTable
All Implemented Interfaces:
JepComponent, Serializable

public class ComplexFunctionTable extends FunctionTable
Function table for function which work with Complex numbers.
See Also:
  • Constructor Details

    • ComplexFunctionTable

      public ComplexFunctionTable(boolean pureComplex, FieldI field)
    • ComplexFunctionTable

      protected ComplexFunctionTable(Map<String,PostfixMathCommandI> tbl)
  • Method Details

    • shallowCopy

      public FunctionTable shallowCopy()
      Description copied from class: FunctionTable
      Returns a new shallow copy of this function table. Calls the FunctionTable.threadSafeMapCopy() method to ensure the table is safe to use a separate thread. All subclasses should override this method to create a function table of the matching type. A typical implementation would be
       @Override
       public FunctionTable shallowCopy() {
           Map<String,PostfixMathCommandI> newMap = this.threadSafeMapCopy();
           return new myFunctionTable(newMap);
       }
       
      using the FunctionTable.threadSafeMapCopy() method to return a copy of the map of functions and a constructor taking this map which uses the FunctionTable(Map) constructor.
      Overrides:
      shallowCopy in class FunctionTable
      Returns:
      a new shallow copy of this function table