Example #1
0
        public List <float> getRoots(SegmentRootMethod method)
        {
            Div();
            List <float> roots = new List <float>();

            for (int i = 0; i < mSegments.Count; i++)
            {
                roots.Add(method.findRoot(mSegments[i], mFunc, me));
            }
            return(roots);
        }
Example #2
0
        public List<float> getRoots(SegmentRootMethod method)
        {
            Div();
            List<float> roots = new List<float>();

            for (int i = 0; i < mSegments.Count; i++)
                roots.Add(method.findRoot(mSegments[i], mFunc, me));
            return roots;
        }