samer@0: /* samer@0: * Copyright (c) 2000, Samer Abdallah, King's College London. samer@0: * All rights reserved. samer@0: * samer@0: * This software is provided AS iS and WITHOUT ANY WARRANTY; samer@0: * without even the implied warranty of MERCHANTABILITY or samer@0: * FITNESS FOR A PARTICULAR PURPOSE. samer@0: */ samer@0: samer@0: package samer.maths; samer@0: samer@0: public class Zero extends Function implements Generator samer@0: { samer@0: public void dispose() {} samer@0: samer@0: public double next() { return 0; } samer@0: public void next(double [] x) { Mathx.zero(x); } samer@0: samer@0: public double apply(double t) { return 0; } samer@0: public void apply(double [] x) { Mathx.zero(x); } samer@0: public void apply(double [] x, double [] y) { Mathx.zero(y); } samer@0: samer@0: public String toString() { return "Zero"; } samer@0: public String format(String arg) { return "0"; } samer@0: }