what-the-bank/sources/o/Eag.java

40 lines
1.2 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package o;
/* loaded from: classes.dex */
public final class Eag extends Yrp {
private double c;
private double e;
/* JADX INFO: Access modifiers changed from: package-private */
public Eag(String str) {
this.b = str;
int indexOf = str.indexOf(40);
int indexOf2 = str.indexOf(44, indexOf);
this.e = Double.parseDouble(str.substring(indexOf + 1, indexOf2).trim());
int i = indexOf2 + 1;
this.c = Double.parseDouble(str.substring(i, str.indexOf(44, i)).trim());
}
@Override // o.Yrp
public final double e(double d) {
double d2 = this.c;
return d < d2 ? (d2 * d) / (d + (this.e * (d2 - d))) : ((1.0d - d2) * (d - 1.0d)) / ((1.0d - d) - (this.e * (d2 - d)));
}
@Override // o.Yrp
public final double a(double d) {
double d2 = this.c;
if (d < d2) {
double d3 = this.e;
double d4 = d3 * d2 * d2;
double d5 = ((d2 - d) * d3) + d;
return d4 / (d5 * d5);
}
double d6 = this.e;
double d7 = d2 - 1.0d;
double d8 = d7 * d6 * d7;
double d9 = (((-d6) * (d2 - d)) - d) + 1.0d;
return d8 / (d9 * d9);
}
}