Search Comments and Ratings

go

Comments and Ratings

   
Date File Comment by Comment Rating
31 Mar 2009 Wigner3j.m Wigner3j(j1,j2,j,m1,m2,m) returns the Wigner 3j-symbol. Author: David Terr Hakansson, Par

Ops, did not read the table caption, it was 3jsymbol squared in table. now it match better for a few test cases

30 Mar 2009 Wigner3j.m Wigner3j(j1,j2,j,m1,m2,m) returns the Wigner 3j-symbol. Author: David Terr Hakansson, Par

Made quick test against alpha=beta=gamma=0 3jsymbols in Table 2, in D.M. Brink and R.G. Satchler "Angular Momentum" Oxford Science Publications and can not get a match

05 Nov 2008 Wigner3j.m Wigner3j(j1,j2,j,m1,m2,m) returns the Wigner 3j-symbol. Author: David Terr DUBOST, Brice

It doesn't respect wigner 3j symetries

Wigner3j(1,1,1,1,-1,-1) is not 0

05 Nov 2008 Wigner3j.m Wigner3j(j1,j2,j,m1,m2,m) returns the Wigner 3j-symbol. Author: David Terr DUBOST, Brice

23 Sep 2008 Pell.m Pell(d,s,n) returns the first n positive integer solution to the modified Pell's equation x^2-dy^2=+ Author: David Terr asdasd, asdasdas

19 May 2008 LaguerrePoly.m This program returns the coefficients of the Laguerre polynomial L_n, given n. Author: David Terr Drake, John

Simple. Does what it says and the answers check with Abramowitz and Stegen Table 25.9
using roots(LaguerrePoly(n)) for the
Gauss-Laguerre quadrature abcissas.

13 May 2008 HermitePoly.m This program returns the coefficients of the Hermite polynomial H_n, given n. Author: David Terr nary, lay

05 May 2008 HermitePoly.m This program returns the coefficients of the Hermite polynomial H_n, given n. Author: David Terr Pitroda, Sam

Thanks a lot.

08 Feb 2008 HermitePoly.m This program returns the coefficients of the Hermite polynomial H_n, given n. Author: David Terr Shimotsu, Katsumi

Excellent. Thanks a lot for making this available.

03 Dec 2007 Fibonacci.m Given an integer n, return the nth Fibonacci number. Author: David Terr kol, mat

28 Nov 2007 Physics.zip Archive containing various files pertaining to physics. Author: David Terr thangaraj, uthayakumar

I am finding about programs regarding variational methods and soliton solutions

22 Nov 2007 cfrac.m cfrax(x,n) returns the first n terms in the contined fraction expansion of x. Author: David Terr Shengtian, LE

sehr gut code!!!

16 Nov 2007 Fibonacci.m Given an integer n, return the nth Fibonacci number. Author: David Terr Bills, Yuko

06 Nov 2007 Physics.zip Archive containing various files pertaining to physics. Author: David Terr Boney, Evans

recommended for anyone in early quantum mechanics classes (or teachers looking for material)

06 Nov 2007 HermitePoly.m This program returns the coefficients of the Hermite polynomial H_n, given n. Author: David Terr Boney, Evans

awesome program. Was going to have to build this myself, but this is an excellent substitute.

23 Oct 2007 partitiontable.m Given a nonnegative integer n, compute a table of the unrestricted partition function p(m) for m<=n. Author: David Terr nagib, ahmed

31 Jul 2007 Wigner3j.m Wigner3j(j1,j2,j,m1,m2,m) returns the Wigner 3j-symbol. Author: David Terr de Groot, Lisa

The file does not check wether the condition m1 + m2 = m3 is fulfilled. This should be added.

09 Jul 2007 Wigner3j.m Wigner3j(j1,j2,j,m1,m2,m) returns the Wigner 3j-symbol. Author: David Terr Kraus, Kobi

The loop in rows 59-64 can be replaced by a simple direct sum:
t = tmin : tmax;
wigner = sum( (-1).^t ./ ( factorial(t) .* factorial(t-t1) .* factorial(t-t2) ...
                .* factorial(t3-t) .* factorial(t4-t) .* factorial(t5-t) ) );

06 Jul 2007 LegendrePoly This program returns the coefficients of the Legendre polynomial P_n, given n. Author: David Terr G, Liang

I think there is runoff error when n>39 in my computer.Can anyone fix this problem?

12 Apr 2007 LegendrePoly This program returns the coefficients of the Legendre polynomial P_n, given n. Author: David Terr Stegeman, Thijs

Hi,
I find your function interesting and usefull, but I'm afraid summing the vectors produced reveals an error; while the sum of the coefficients should yield 1 (as Pn(z)=1 for every n), in fact this goes wrong (at least on my computer) at n=25 because of roudof-error (I think), to deviate to something of the order of 1.0e20 at n=99. Do you know of any kind of solution?
Other than that it works very well!
Thanks.

05 Apr 2007 AssociatedLaguerrePoly.m This program returns the coefficients of the Associated Laguerre polynomial L_{n,m}, given n and m. Author: David Terr Baumgartner, Andreas

I use the following, based on the posted version. It is not necessary to distinguish the m=0 case and the binomial can be replaced by some factorials.

% y=Laguerre(n,m,x) returns the (generalised) Laguerre Polynomial
% L_{n}^{m}(x) by calculating the coefficients of the Taylor series
% following http://en.wikipedia.org/wiki/Laguerre_polynomials and then
% using polyval to calculate the actual function values. Required are input
% n>0.
% The idea is based upon the solution in
% http://www.mathworks.com/matlabcentral/fileexchange/loadFile.do?objectId=4914
% however without distinguishing m=0 from other polynomials.

function y=Laguerre(n,m,x)
P = zeros(n+1,1);
for v=0:n
    P(n+1-v) = (-1)^v * factorial(n+m)/factorial(n-v)/factorial(m+v)/factorial(v);
end;
y = polyval(P,x);

25 Jan 2007 ChebyshevPoly.m This program returns the coefficients of the Chebyshev polynomial T_n, given n. Author: David Terr Sharma, Jahnavi

29 Nov 2006 ChebyshevPoly.m This program returns the coefficients of the Chebyshev polynomial T_n, given n. Author: David Terr hammouri, odai

18 Sep 2006 Physics.zip Archive containing various files pertaining to physics. Author: David Terr He, Changjiang

26 May 2006 ClebschGordan.m ClebschGordan(j1,j2,j,m1,m2,m) is the Clebsch-Gordan coefficient <j1,j2,m1,m2|j1,j2,j,m>. Author: David Terr mosa, kheder

very good programs

24 May 2006 binomial.m This program computes the binomial coefficient C(n,m). Author: David Terr Pijnenburg, Mark

Indeed this function does not work for symbolic computations so should be removed from this list. It works for numerical computations but for this there are better alternatives, e.g. nchoosek or other.

15 May 2006 factor2.m factor2(n) returns the prime factorization of n as a k by 2 matrix. Author: David Terr Jan, Not Happy

Relying on factor() means you restrict yourself to numbers less than 2^32

01 Feb 2006 HermitePoly.m This program returns the coefficients of the Hermite polynomial H_n, given n. Author: David Terr Park, Peter

simple algorithm, fast performance.
Why don't I make things like it?

26 Dec 2005 HermitePoly.m This program returns the coefficients of the Hermite polynomial H_n, given n. Author: David Terr Mohamed, Aklouh

02 Dec 2005 partitiontable.m Given a nonnegative integer n, compute a table of the unrestricted partition function p(m) for m<=n. Author: David Terr Marchie, Maxine

Please to be able to run the IS-95A CDMA Power Control Simulation file, how do get get the required products: CDMA Reference Blockset,Communications Blockset,Communications Toolbox,Signal Processing Blockset,Signal Processing Toolbox,Simulink,Stateflow. Thanks.

09 Nov 2005 AssociatedLaguerrePoly.m This program returns the coefficients of the Associated Laguerre polynomial L_{n,m}, given n and m. Author: David Terr Dean, Mark

Cheers you are a MATLAB wizard

09 Oct 2005 Lucas.m Given a nonnegative integer n, return the nth Lucas number. Author: David Terr alibahri, ali

17 Sep 2005 binomial.m This program computes the binomial coefficient C(n,m). Author: David Terr Hill, B

nchoosek works fine. This function only appears to support numeric calculation. Remove post from "Symoblic Math" section as it does not belong here.

15 Sep 2005 ClebschGordan.m ClebschGordan(j1,j2,j,m1,m2,m) is the Clebsch-Gordan coefficient <j1,j2,m1,m2|j1,j2,j,m>. Author: David Terr Bologna, Tommaso

Very good routine

14 May 2005 Physics.zip Archive containing various files pertaining to physics. Author: David Terr Berry, Matt

Very helpful. Reading the comments is plenty to understand how to use these files.

17 Feb 2005 HermitePoly.m This program returns the coefficients of the Hermite polynomial H_n, given n. Author: David Terr Schapotschnikow, Philipp

Good stuff!
If you need Hermite-Polynomials derived from the Gaussian measure
1/(sqrt(2pi))exp(-x^2/2)
then you just have delete all the '2' in the program and replace them by 1

23 Jan 2005 GeneralizedFibonacci.m GeneralizedFibonacci(n,a,b) returns the generalized Fibonacci number. Author: David Terr Akkiraju, Srikanth

23 Dec 2004 LegendrePoly This program returns the coefficients of the Legendre polynomial P_n, given n. Author: David Terr baha, anas

thank you very much

02 Nov 2004 harmonic.m Harmonic(n) is an estimate of the nth harmonic number. Author: David Terr TELES, ANTONIO

Only information!
Thanks!
Teles

03 Oct 2004 Fibonacci.m Given an integer n, return the nth Fibonacci number. Author: David Terr korrapati, hemanth

very good site

25 Aug 2004 LegendrePoly This program returns the coefficients of the Legendre polynomial P_n, given n. Author: David Terr Enderlein, Joerg

29 Jul 2004 Physics.zip Archive containing various files pertaining to physics. Author: David Terr abc, abc

12 Jul 2004 Physics.zip Archive containing various files pertaining to physics. Author: David Terr Terr, David

If you read the comments at the beginning of each file it should be clear what they do.
I just thought it would be convenient to create packages of the files of each type I've written.

Dave

10 Jul 2004 Physics.zip Archive containing various files pertaining to physics. Author: David Terr dinardo, tony

there is absolutly not documentation or instruction set. Why load up a set of indeciperable files? Terrible

28 Jun 2004 ChebyshevPoly.m This program returns the coefficients of the Chebyshev polynomial T_n, given n. Author: David Terr McDonald, James

Very accurate and well done.

31 May 2004 ChebyshevExpansion.m Given a polynomial f(x) expressed as a column vector, compute the coefficients of the expansion ... Author: David Terr von Winckel, Greg

Nice implementation. This is a good script for series with a small number of terms, however, the transform matrix is highly ill-conditioned. For a series with k terms, cond(M(k)) = O(exp(0.85*k)). i.e. the condition number doubles for each term added to the series. Treating the odd and even terms separately will improve this.

25 May 2004 factor2.m factor2(n) returns the prime factorization of n as a k by 2 matrix. Author: David Terr vdG, Jos

Sorry, small mistake in row/columns
F = factor(A) ;
X(1,:) = unique(F(:)') ;
X(2,:) = hist(F,X(:,1)) ;

25 May 2004 factor2.m factor2(n) returns the prime factorization of n as a k by 2 matrix. Author: David Terr vdG, Jos

or use Matlab:
F = factor(A) ;
X(:,1) = unique(F(:)') ;
X(:,2) = hist(F,X(:,1)) ;

24 May 2004 binomial.m This program computes the binomial coefficient C(n,m). Author: David Terr vdG, Jos

lookfor "binomial coefficient" returns
NCHOOSEK

18 May 2004 ChebyshevPoly.m This program returns the coefficients of the Chebyshev polynomial T_n, given n. Author: David Terr soltan, badr

 

MATLAB Central Terms of Use

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Terms prior to use.

Contact us at files@mathworks.com