mirror of
https://github.com/vale981/stocproc
synced 2025-03-04 17:21:42 -05:00
allow for shifted bcfs
This commit is contained in:
parent
a673d85010
commit
c350248ad8
1 changed files with 4 additions and 0 deletions
|
@ -47,6 +47,10 @@ def find_integral_boundary(integrand, tol, ref_val, max_val, x0):
|
|||
_max_num_iteration = 100
|
||||
_i = 0
|
||||
x0 = float(x0)
|
||||
|
||||
while integrand(ref_val) == 0:
|
||||
ref_val += 1
|
||||
|
||||
I_ref = integrand(ref_val)
|
||||
log.debug("find_integral_boundary")
|
||||
log.debug("I_ref: {:.2e} at ref_val: {:.2e}".format(I_ref, ref_val))
|
||||
|
|
Loading…
Add table
Reference in a new issue