01: package JSci.maths;
02:
03: /**
04: * This interface defines a complex map or function.
05: * It is used to pass user-defined functions to some of
06: * the other maths classes.
07: * It is expected that <code>map(z)</code> gives an identical result to <code>map(z.real(), z.imag())</code>.
08: * @see NumericalMath
09: * @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: /**
21: * A user-defined complex function.
22: * This method is designed to save the construction of a Complex object in cases where one is not given.
23: */
24: Complex map(double real, double imag);
25: }
|