Lines Matching full:ratio
118 double ratio = Q / A;
119 if (approximately_zero_or_more(ratio) && approximately_one_or_less(ratio)) {
120 if (approximately_less_than_zero(ratio)) {
121 ratio = 0;
122 } else if (approximately_greater_than_one(ratio)) {
123 ratio = 1;
125 t[0] = ratio;
128 ratio = C / Q;
129 if (approximately_zero_or_more(ratio) && approximately_one_or_less(ratio)) {
130 if (approximately_less_than_zero(ratio)) {
131 ratio = 0;
132 } else if (approximately_greater_than_one(ratio)) {
133 ratio = 1;
135 if (foundRoots == 0 || !approximately_negative(ratio - t[0])) {
136 t[foundRoots++] = ratio;
137 } else if (!approximately_negative(t[0] - ratio)) {
139 t[0] = ratio;