Mercurial > octave
view test/fcn-handle/bug57941a.m @ 31198:863730dd0f83 stable
nextpow2: Fix for input between 0.5 and 1 (bug #62947).
* scripts/general/nextpow2.m: Switch to a naïve implementation using log2 with
a single output argument and ceil.
author | Markus Mützel <markus.muetzel@gmx.de> |
---|---|
date | Wed, 24 Aug 2022 17:15:34 +0200 |
parents | 23fe97205db5 |
children |
line wrap: on
line source
function [r1, r2] = bug57941a (A) fh1 = @nested1; function z = nested1 (x) z = A * x; end fh2 = @nested2; function z = nested2 (x,y) z = A * x .* y; end r1 = fh1 (3); r2 = fh2 (3, 4); end