comparison src/ov-fcn-handle.cc @ 7740:39930366b709

implement builtin log2
author Jaroslav Hajek <highegg@gmail.com>
date Wed, 30 Apr 2008 03:30:34 -0400
parents a9d25da4ed9c
children 14b841c47a5f
comparison
equal deleted inserted replaced
7739:ca9bfe159144 7740:39930366b709
379 379
380 %!test 380 %!test
381 %! a = 2; 381 %! a = 2;
382 %! f = @(x) a + x; 382 %! f = @(x) a + x;
383 %! g = @(x) 2 * x; 383 %! g = @(x) 2 * x;
384 %! h = @log2; 384 %! h = @flops;
385 %! f2 = f; 385 %! f2 = f;
386 %! g2 = g; 386 %! g2 = g;
387 %! h2 = h; 387 %! h2 = h;
388 %! nm = tmpnam(); 388 %! nm = tmpnam();
389 %! unwind_protect 389 %! unwind_protect
576 576
577 %!test 577 %!test
578 %! a = 2; 578 %! a = 2;
579 %! f = @(x) a + x; 579 %! f = @(x) a + x;
580 %! g = @(x) 2 * x; 580 %! g = @(x) 2 * x;
581 %! h = @log2; 581 %! h = @flops;
582 %! f2 = f; 582 %! f2 = f;
583 %! g2 = g; 583 %! g2 = g;
584 %! h2 = h; 584 %! h2 = h;
585 %! nm = tmpnam(); 585 %! nm = tmpnam();
586 %! unwind_protect 586 %! unwind_protect
1117 %!test 1117 %!test
1118 %! if (!isempty(findstr(octave_config_info ("DEFS"),"HAVE_HDF5"))) 1118 %! if (!isempty(findstr(octave_config_info ("DEFS"),"HAVE_HDF5")))
1119 %! a = 2; 1119 %! a = 2;
1120 %! f = @(x) a + x; 1120 %! f = @(x) a + x;
1121 %! g = @(x) 2 * x; 1121 %! g = @(x) 2 * x;
1122 %! h = @log2; 1122 %! h = @flops;
1123 %! f2 = f; 1123 %! f2 = f;
1124 %! g2 = g; 1124 %! g2 = g;
1125 %! h2 = h; 1125 %! h2 = h;
1126 %! nm = tmpnam(); 1126 %! nm = tmpnam();
1127 %! unwind_protect 1127 %! unwind_protect