diff scripts/specfun/betainc.m @ 30326:cd7c824f3f22

eliminate use of .+ and .- operators in Octave sources * bsxfun.cc, graphics.cc, annotation.m, __interp_cube__.m, __marching_cube__.m, subplot.m, spline.m, betainc.m, gallery.m: Use + and - instead of .+ and .- in Octave sources and tests. * pt-eval.cc (get_operator_function_name): Note that .+ and .- are deprecated.
author John W. Eaton <jwe@octave.org>
date Tue, 23 Nov 2021 12:36:01 -0500
parents ad6a57b215e8
children 01de0045b2e3
line wrap: on
line diff
--- a/scripts/specfun/betainc.m	Tue Nov 23 12:28:40 2021 -0500
+++ b/scripts/specfun/betainc.m	Tue Nov 23 12:36:01 2021 -0500
@@ -223,7 +223,7 @@
 %! v2 = single ([1,1,1,1]);
 %! x = [.2, .4, .6, .8];
 %! v3 = betainc (x, a, b);
-%! v4 = 1-betainc (1.-x, b, a);
+%! v4 = 1 - betainc (1. - x, b, a);
 %! assert (v1, v2, sqrt (eps ("single")));
 %! assert (v3, v4, sqrt (eps ("single")));