source: proiecte/pmake3d/make3d_original/Make3dSingleImageStanford_version0.1/third_party/lightspeed/test_digamma.m @ 37

Last change on this file since 37 was 37, checked in by (none), 14 years ago

Added original make3d

File size: 635 bytes
Line 
1digamma(9) - 2.140641477955609996536345
2digamma(2.5) - 0.7031566406452431872257
3digamma(0.1) - (-10.42375494041107679516822)
4digamma(7e-4) - (-1429.147493371120205005198)
5digamma(7e-5) - (-14286.29138623969227538398)
6digamma(7e-6) - (-142857.7200612932791081972)
7digamma(2e-6) - (-500000.5772123750382073831)
8digamma(1e-6) - (-1000000.577214019968668068)
9digamma(7e-7) - (-1428572.005785942019703646)
10digamma(-0.5) - (.03648997397857652055902367)
11digamma(-1.1) - 10.15416395914385769902271
12digamma(-1)
13if digamma(0) ~= -Inf
14  error('digamma(0) should be -Inf');
15end
16if ~isnan(digamma(-Inf))
17  error('digamma(-Inf) should be NaN');
18end
Note: See TracBrowser for help on using the repository browser.