Original Post
Hello;
I want to define an error function . Its graph is like a well. It is zero in between certain limit and very large outside.
\............./
\.........../
\........./
\_______/
C1 C2
F(x) = 0 if x lies between C1 & C2.
F(x) = Infinity(very large or increasing) if x C2
I took the approximation as
F(x) = (x-C1)*(x-C1) * (C2-x)*(C2-x)
It gives F(C1)=F(C2) = 0; But it is increasing between C1 & C2. If C1 & c2 are very closer to each other then it is ok. I want F to be 0 0r less than .00001 btween C1 & C2.
How i can relate x, C1, C2 and (C2-C1) to proper F(x)
Thanks
Alam
-- Learning never ends --
[edited by - alam on April 20, 2002 7:54:48 AM]
[edited by - alam on April 20, 2002 7:56:55 AM]
[edited by - Alam on April 20, 2002 7:59:44 AM]