Skip to content

Commit

Permalink
Merge pull request #2441 from chebfun/randnfun-large-lambda
Browse files Browse the repository at this point in the history
fix randnfun lambda
  • Loading branch information
bhashemi committed Jul 11, 2023
2 parents 8e54ca9 + 92a5175 commit 859a50c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion randnfun.m
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,8 @@

else % nonperiodic case: call periodic case and restrict

dom2 = dom(1) + [0 1.2*diff(dom)];
dx = max(0.2,2*lambda/diff(dom));
dom2 = dom(1) + [0 (1+dx)*diff(dom)];
m = round(diff(dom)/lambda);

if lambda == inf
Expand Down

0 comments on commit 859a50c

Please sign in to comment.