Skip to content

Commit 9bfdd2e

Browse files
committed
Features:
Bug Fixes/Re-organization: - Special Function Property Bessel First Equality Lemma - Mirror Identify #1 (1, 2, 3) - Special Function Property Bessel First Equality Lemma - Mirror Identify #2 (4, 5, 6) - Special Function Property Bessel First Equality Lemma - Half Integer Identity #1 (7, 8, 9) - Special Function Property Bessel First Equality Lemma - Half Integer Identity #2 (10, 11, 12) - Special Function Property Bessel First Equality Lemma - Half Integer Identity #3 (13, 14) - Special Function Property Bessel Second Equality Lemma (15, 16) - Special Function Property Bessel Second Equality Lemma - Mirror Identify #1 (17, 18, 19) - Special Function Property Bessel Second Equality Lemma - Mirror Identify #2 (20, 21) - Special Function Property Bessel Second Equality Lemma - Mirror Identify #3 (22, 23) - Special Function Property Bessel Second Equality Lemma - Half Integer Identify #1 (24, 25, 26) - Special Function Property Bessel Second Equality Lemma - Half Integer Identify #2 (27, 28, 29) - Special Function Property Bessel Second Equality Lemma - Half Integer Identify #3 (30, 31) - Special Function Property Beta Equality Lemma (32, 33, 34) - Special Function Property Beta Equality Lemma - Identity 1 #1 (35, 36, 37) - Special Function Property Beta Equality Lemma - Identity 1 #2 (38, 39, 40) - Special Function Property Beta Equality Lemma - Identity 2 #1 (41, 42, 43) - Special Function Property Beta Equality Lemma - Identity 2 #2 (44, 45, 46) - Special Function Property Beta Equality Lemma - Identity 3 #1 (47, 48, 49) - Special Function Property Beta Equality Lemma - Identity 3 #2 (50, 51, 52) - Special Function Property Beta Equality Lemma - Identity 4 #1 (53, 54, 55) - Special Function Property Beta Equality Lemma - Identity 4 #2 (56, 57, 58) - Special Function Property Beta Equality Lemma - Identity 5 #1 (59, 60) Samples: IdeaDRIP:
1 parent 6c16aa9 commit 9bfdd2e

File tree

4 files changed

+285
-321
lines changed

4 files changed

+285
-321
lines changed

ReleaseNotes/08_23_2023.txt

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
2+
Features:
3+
4+
Bug Fixes/Re-organization:
5+
6+
- Special Function Property Bessel First Equality Lemma - Mirror Identify #1 (1, 2, 3)
7+
- Special Function Property Bessel First Equality Lemma - Mirror Identify #2 (4, 5, 6)
8+
- Special Function Property Bessel First Equality Lemma - Half Integer Identity #1 (7, 8, 9)
9+
- Special Function Property Bessel First Equality Lemma - Half Integer Identity #2 (10, 11, 12)
10+
- Special Function Property Bessel First Equality Lemma - Half Integer Identity #3 (13, 14)
11+
- Special Function Property Bessel Second Equality Lemma (15, 16)
12+
- Special Function Property Bessel Second Equality Lemma - Mirror Identify #1 (17, 18, 19)
13+
- Special Function Property Bessel Second Equality Lemma - Mirror Identify #2 (20, 21)
14+
- Special Function Property Bessel Second Equality Lemma - Mirror Identify #3 (22, 23)
15+
- Special Function Property Bessel Second Equality Lemma - Half Integer Identify #1 (24, 25, 26)
16+
- Special Function Property Bessel Second Equality Lemma - Half Integer Identify #2 (27, 28, 29)
17+
- Special Function Property Bessel Second Equality Lemma - Half Integer Identify #3 (30, 31)
18+
- Special Function Property Beta Equality Lemma (32, 33, 34)
19+
- Special Function Property Beta Equality Lemma - Identity 1 #1 (35, 36, 37)
20+
- Special Function Property Beta Equality Lemma - Identity 1 #2 (38, 39, 40)
21+
- Special Function Property Beta Equality Lemma - Identity 2 #1 (41, 42, 43)
22+
- Special Function Property Beta Equality Lemma - Identity 2 #2 (44, 45, 46)
23+
- Special Function Property Beta Equality Lemma - Identity 3 #1 (47, 48, 49)
24+
- Special Function Property Beta Equality Lemma - Identity 3 #2 (50, 51, 52)
25+
- Special Function Property Beta Equality Lemma - Identity 4 #1 (53, 54, 55)
26+
- Special Function Property Beta Equality Lemma - Identity 4 #2 (56, 57, 58)
27+
- Special Function Property Beta Equality Lemma - Identity 5 #1 (59, 60)
28+
29+
30+
Samples:
31+
32+
IdeaDRIP:

src/main/java/org/drip/specialfunction/property/BesselFirstEqualityLemma.java

+36-47
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,17 @@
11

22
package org.drip.specialfunction.property;
33

4+
import org.drip.function.definition.R1ToR1;
45
import org.drip.function.definition.R1ToR1Property;
56
import org.drip.function.definition.R2ToR1;
67
import org.drip.function.definition.R2ToR1Property;
78
import org.drip.function.definition.RxToR1Property;
89
import org.drip.numerical.common.NumberUtil;
910
import org.drip.specialfunction.bessel.FirstFrobeniusSeriesEstimator;
11+
import org.drip.specialfunction.bessel.SecondNISTSeriesEstimator;
12+
import org.drip.specialfunction.definition.BesselFirstKindEstimator;
13+
import org.drip.specialfunction.definition.BesselSecondKindEstimator;
14+
import org.drip.specialfunction.digamma.BinetFirstIntegral;
1015
import org.drip.specialfunction.gamma.EulerIntegralSecondKind;
1116

1217
/*
@@ -200,75 +205,59 @@ public static final R2ToR1Property MirrorIdentity()
200205
* @return The Bessel First Kind Half-Integer Identity Verifier
201206
*/
202207

203-
public static final org.drip.function.definition.R2ToR1Property HalfIntegerIdentity()
208+
public static final R2ToR1Property HalfIntegerIdentity()
204209
{
205-
org.drip.function.definition.R1ToR1 gammaEstimator = new
206-
org.drip.specialfunction.gamma.EulerIntegralSecondKind (null);
210+
R1ToR1 gammaEstimator = new EulerIntegralSecondKind (null);
207211

208-
final org.drip.specialfunction.definition.BesselFirstKindEstimator besselFirstKindEstimator =
209-
org.drip.specialfunction.bessel.FirstFrobeniusSeriesEstimator.Standard (
212+
final BesselFirstKindEstimator besselFirstKindEstimator = FirstFrobeniusSeriesEstimator.Standard (
213+
gammaEstimator,
214+
50
215+
);
216+
217+
try {
218+
final BesselSecondKindEstimator besselSecondKindEstimator = SecondNISTSeriesEstimator.Standard (
219+
new BinetFirstIntegral (null),
210220
gammaEstimator,
211-
50
221+
FirstFrobeniusSeriesEstimator.Standard (gammaEstimator, 40),
222+
40
212223
);
213224

214-
try
215-
{
216-
final org.drip.specialfunction.definition.BesselSecondKindEstimator besselSecondKindEstimator =
217-
org.drip.specialfunction.bessel.SecondNISTSeriesEstimator.Standard (
218-
new org.drip.specialfunction.digamma.BinetFirstIntegral (null),
219-
gammaEstimator,
220-
org.drip.specialfunction.bessel.FirstFrobeniusSeriesEstimator.Standard (
221-
gammaEstimator,
222-
40
223-
),
224-
40
225-
);
226-
227-
return new org.drip.function.definition.R2ToR1Property (
228-
org.drip.function.definition.RxToR1Property.EQ,
229-
new org.drip.function.definition.R2ToR1()
230-
{
225+
return new R2ToR1Property (
226+
RxToR1Property.EQ,
227+
new R2ToR1() {
231228
@Override public double evaluate (
232229
final double alpha,
233230
final double z)
234-
throws java.lang.Exception
231+
throws Exception
235232
{
236-
if (!org.drip.numerical.common.NumberUtil.IsInteger (alpha))
237-
{
238-
throw new java.lang.Exception
239-
("BesselFirstEqualityLemma::HalfIntegerIdentity => Invalid Inputs");
233+
if (!NumberUtil.IsInteger (alpha)) {
234+
throw new Exception (
235+
"BesselFirstEqualityLemma::HalfIntegerIdentity => Invalid Inputs"
236+
);
240237
}
241238

242-
return besselFirstKindEstimator.bigJ (
243-
-1. * (alpha + 0.5),
244-
z
245-
);
239+
return besselFirstKindEstimator.bigJ (-1. * (alpha + 0.5), z);
246240
}
247241
},
248-
new org.drip.function.definition.R2ToR1()
249-
{
242+
new R2ToR1() {
250243
@Override public double evaluate (
251244
final double alpha,
252245
final double z)
253-
throws java.lang.Exception
246+
throws Exception
254247
{
255-
if (!org.drip.numerical.common.NumberUtil.IsInteger (alpha))
256-
{
257-
throw new java.lang.Exception
258-
("BesselFirstEqualityLemma::HalfIntegerIdentity => Invalid Inputs");
248+
if (!NumberUtil.IsInteger (alpha)) {
249+
throw new Exception (
250+
"BesselFirstEqualityLemma::HalfIntegerIdentity => Invalid Inputs"
251+
);
259252
}
260253

261-
return (0 == ((int) (alpha + 1)) % 2 ? 1. : -1.) * besselSecondKindEstimator.bigY (
262-
alpha + 0.5,
263-
z
264-
);
254+
return (0 == ((int) (alpha + 1)) % 2 ? 1. : -1.) *
255+
besselSecondKindEstimator.bigY (alpha + 0.5, z);
265256
}
266257
},
267-
org.drip.function.definition.R1ToR1Property.MISMATCH_TOLERANCE
258+
R1ToR1Property.MISMATCH_TOLERANCE
268259
);
269-
}
270-
catch (java.lang.Exception e)
271-
{
260+
} catch (Exception e) {
272261
e.printStackTrace();
273262
}
274263

0 commit comments

Comments
 (0)