Skip to content

Commit

Permalink
update boundary condition
Browse files Browse the repository at this point in the history
---
type: pre_push_report
description: Results of running various checks prior to pushing changes.
report:
  - task: run_javascript_examples
    status: na
  - task: run_c_examples
    status: na
  - task: run_cpp_examples
    status: na
  - task: run_javascript_readme_examples
    status: na
  - task: run_c_benchmarks
    status: na
  - task: run_cpp_benchmarks
    status: na
  - task: run_fortran_benchmarks
    status: na
  - task: run_javascript_benchmarks
    status: na
  - task: run_julia_benchmarks
    status: na
  - task: run_python_benchmarks
    status: na
  - task: run_r_benchmarks
    status: na
  - task: run_javascript_tests
    status: na
---
  • Loading branch information
yuvi-mittal committed Feb 2, 2025
1 parent add5e31 commit af9929f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ bench( pkg, function benchmark( b ) {
len = 100;
lambda = new Float64Array( len );
for ( i = 0; i < len; i++ ) {
lambda[ i ] = uniform(0.1, 11);
lambda[ i ] = uniform(1, 11);
}

b.tic();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,5 @@ double stdlib_base_dists_planck_stdev( const double lambda ) {
if ( stdlib_base_is_nan( lambda ) || lambda <= 0.0 ) {
return 0.0/0.0; // NaN
}
double exp_lambda = stdlib_base_exp( -lambda ) ;
return stdlib_base_sqrt( exp_lambda ) / stdlib_base_abs( stdlib_base_expm1( -lambda ) );
return stdlib_base_sqrt( stdlib_base_exp( -lambda ) ) / stdlib_base_abs( stdlib_base_expm1( -lambda ) );
}

0 comments on commit af9929f

Please sign in to comment.