• Home
  • Raw
  • Download

Lines Matching full:roots

32                 double roots[2];  in quadraticTest()  local
33 const int rootCount = limit ? quadraticRootsValidT(A, b, c, roots) in quadraticTest()
34 : quadraticRootsReal(A, b, c, roots); in quadraticTest()
46 SkASSERT(approximately_equal(roots[0], -B) in quadraticTest()
47 || approximately_equal(roots[0], -C)); in quadraticTest()
49 SkASSERT(!approximately_equal(roots[0], roots[1])); in quadraticTest()
50 SkASSERT(approximately_equal(roots[1], -B) in quadraticTest()
51 || approximately_equal(roots[1], -C)); in quadraticTest()
71 double roots[3]; in testOneCubic() local
72 const int rootCount = limit ? cubicRootsValidT(A, b, c, d, roots) in testOneCubic()
73 : cubicRootsReal(A, b, c, d, roots); in testOneCubic()
86 SkASSERT(approximately_equal(roots[0], -B) in testOneCubic()
87 || approximately_equal(roots[0], -C) in testOneCubic()
88 || approximately_equal(roots[0], -D)); in testOneCubic()
92 SkASSERT(!approximately_equal(roots[0], roots[1])); in testOneCubic()
93 SkASSERT(approximately_equal(roots[1], -B) in testOneCubic()
94 || approximately_equal(roots[1], -C) in testOneCubic()
95 || approximately_equal(roots[1], -D)); in testOneCubic()
99 SkASSERT(!approximately_equal(roots[0], roots[2]) in testOneCubic()
100 && !approximately_equal(roots[1], roots[2])); in testOneCubic()
101 SkASSERT(approximately_equal(roots[2], -B) in testOneCubic()
102 || approximately_equal(roots[2], -C) in testOneCubic()
103 || approximately_equal(roots[2], -D)); in testOneCubic()
130 double roots[4]; in testOneQuartic() local
132 int rootCount = reducedQuarticRoots(A, b, c, d, e, oneHint, roots); in testOneQuartic()
134 rootCount = quarticRootsReal(0, A, b, c, d, e, roots); in testOneQuartic()
138 SkASSERT(AlmostEqualUlps(roots[0], -B) in testOneQuartic()
139 || AlmostEqualUlps(roots[0], -C) in testOneQuartic()
140 || AlmostEqualUlps(roots[0], -D) in testOneQuartic()
141 || AlmostEqualUlps(roots[0], -E)); in testOneQuartic()
145 SkASSERT(!AlmostEqualUlps(roots[0], roots[1])); in testOneQuartic()
146 SkASSERT(AlmostEqualUlps(roots[1], -B) in testOneQuartic()
147 || AlmostEqualUlps(roots[1], -C) in testOneQuartic()
148 || AlmostEqualUlps(roots[1], -D) in testOneQuartic()
149 || AlmostEqualUlps(roots[1], -E)); in testOneQuartic()
153 SkASSERT(!AlmostEqualUlps(roots[0], roots[2]) in testOneQuartic()
154 && !AlmostEqualUlps(roots[1], roots[2])); in testOneQuartic()
155 SkASSERT(AlmostEqualUlps(roots[2], -B) in testOneQuartic()
156 || AlmostEqualUlps(roots[2], -C) in testOneQuartic()
157 || AlmostEqualUlps(roots[2], -D) in testOneQuartic()
158 || AlmostEqualUlps(roots[2], -E)); in testOneQuartic()
162 SkASSERT(!AlmostEqualUlps(roots[0], roots[3]) in testOneQuartic()
163 && !AlmostEqualUlps(roots[1], roots[3]) in testOneQuartic()
164 && !AlmostEqualUlps(roots[2], roots[3])); in testOneQuartic()
165 SkASSERT(AlmostEqualUlps(roots[3], -B) in testOneQuartic()
166 || AlmostEqualUlps(roots[3], -C) in testOneQuartic()
167 || AlmostEqualUlps(roots[3], -D) in testOneQuartic()
168 || AlmostEqualUlps(roots[3], -E)); in testOneQuartic()