Path: csiph.com!x330-a1.tempe.blueboxinc.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!weretis.net!feeder4.news.weretis.net!news.wtal.de!news.tal.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Axel Vogt <&noreply@axelvogt.de> Newsgroups: comp.soft-sys.math.maple Subject: Re: Orthogonal Polynomials Date: Sat, 09 Jul 2011 16:35:48 +0200 Lines: 50 Message-ID: <97r7apFmllU1@mid.individual.net> References: Reply-To: &noreply@axelvogt.de Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: individual.net X5mfR2I2DDeojlqokNz3ggpS2ovRnnt7hH4X/0TagHQGDSvNU= Cancel-Lock: sha1:FEzYyRf0MIEzGvhvK9P0SKkCRpA= User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:5.0) Gecko/20110624 Thunderbird/5.0 In-Reply-To: Xref: x330-a1.tempe.blueboxinc.net comp.soft-sys.math.maple:206 On 08.07.2011 19:41, Mate wrote: > Hello to all, > > I'd like to share here a recent experience in using > Maple in a project requesting the manipulation of some > orthogonal polynomials. It was a rather frustrating one > and I mention it hoping to be useful for other users and also for > Mapelsoft's stuff (if they read this forum) in order to do > something about this. > > The OthogonalSeries package is not new in Maple, so ... (snipped to shorten for my reply) > I have also found that some orthogonal functions are not well > integrated into the system. > For example, the obvious: > > int(ChebyshevT(40,x)^2*(1-x^2)^(-1/2),x=-1..1); > > cannot be computed to Pi/2 (at least in a reasonable time); it works > however if the polynomial is expanded, or if its degree is e.g. 10. > > Finally the package was useful, but I would be interested if other > users had similar experiences and if there is a better approach > in such cases. > > Mate I only used it occasionally and then only for computing a base change. For the above integral I could imagine, that Maple uses some general representation for ChebyshevT (hypergeom 2F1 ?) and can not find a solution, even for the specific situation (but after 'expand' becomes aware of it). For that I used Cheb:= (n,x) -> cos(n*arccos(x)) and then Int(ChebyshevT(40,x)^2*(1-x^2)^(-1/2),x=-1..1); subs(ChebyshevT = Cheb, %); value(%); is quite fast. However for orthogonality Cheb(m,x), Cheb(n,x) some care is needed, M15 seems to ignore the special case m=n. There is a package by Sergey Moiseev at Maple's Application Center, which may be of interest for you. Axel