package o; import java.io.PrintStream; import java.lang.reflect.Array; import java.util.Arrays; /* renamed from: o.cwJ, reason: case insensitive filesystem */ /* loaded from: classes.dex */ public final class C7857cwJ extends Yrp { private DBy c; /* JADX INFO: Access modifiers changed from: package-private */ public C7857cwJ(String str) { this.b = str; double[] dArr = new double[this.b.length() / 2]; int indexOf = str.indexOf(40) + 1; int indexOf2 = str.indexOf(44, indexOf); int i = 0; while (indexOf2 != -1) { dArr[i] = Double.parseDouble(str.substring(indexOf, indexOf2).trim()); indexOf = indexOf2 + 1; indexOf2 = str.indexOf(44, indexOf); i++; } dArr[i] = Double.parseDouble(str.substring(indexOf, str.indexOf(41, indexOf)).trim()); double[] copyOf = Arrays.copyOf(dArr, i + 1); int length = (copyOf.length * 3) - 2; int length2 = copyOf.length - 1; double d = 1.0d / length2; double[][] dArr2 = (double[][]) Array.newInstance((Class) Double.TYPE, length, 1); double[] dArr3 = new double[length]; for (int i2 = 0; i2 < copyOf.length; i2++) { double d2 = copyOf[i2]; int i3 = i2 + length2; dArr2[i3][0] = d2; double d3 = i2 * d; dArr3[i3] = d3; if (i2 > 0) { int i4 = (length2 << 1) + i2; dArr2[i4][0] = d2 + 1.0d; dArr3[i4] = d3 + 1.0d; int i5 = i2 - 1; dArr2[i5][0] = (d2 - 1.0d) - d; dArr3[i5] = (d3 - 1.0d) - d; } } DBy dBy = new DBy(dArr3, dArr2); PrintStream printStream = System.out; StringBuilder sb = new StringBuilder(" 0 "); sb.append(dBy.e(0.0d)); printStream.println(sb.toString()); PrintStream printStream2 = System.out; StringBuilder sb2 = new StringBuilder(" 1 "); sb2.append(dBy.e(1.0d)); printStream2.println(sb2.toString()); this.c = dBy; } @Override // o.Yrp public final double a(double d) { return this.c.d(d); } @Override // o.Yrp public final double e(double d) { return this.c.e(d); } }