1 package JSci.maths; 2 3 /** 4 * This interface defines a complex map or function. 5 * It is used to pass user-defined functions to some of 6 * the other maths classes. 7 * It is expected that <code>map(z)</code> gives an identical result to <code>map(z.real(), z.imag())</code>. 8 * @see NumericalMath 9 * @see Mapping 10 * @see MappingND 11 * @version 1.1 12 * @author Mark Hale 13 */ 14 public interface ComplexMapping { 15 /** 16 * A user-defined complex function. 17 */ 18 Complex map(Complex z); 19 /** 20 * A user-defined complex function. 21 * This method is designed to save the construction of a Complex object in cases where one is not given. 22 */ 23 Complex map(double real, double imag); 24 } 25 26