Mercurial > hg > octave-nkf
view test/octave.test/arith/betainc-1.m @ 7217:c8abc18322b7
[project @ 2007-11-29 20:50:24 by jwe]
author | jwe |
---|---|
date | Thu, 29 Nov 2007 20:50:24 +0000 |
parents | ac5ed096b496 |
children |
line wrap: on
line source
a=[1, 1.5, 2, 3]; b=[4, 3, 2, 1]; v1=betainc(1,a,b); v2=[1,1,1,1]; x = [.2, .4, .6, .8]; v3=betainc(x, a, b); v4 = 1-betainc(1.-x, b, a); all(abs(v1-v2)<sqrt(eps)) && all(abs(v3-v4)<sqrt(eps))