Re: [R] legendre quadrature

2014-05-03 Thread Berend Hasselman
On 01-05-2014, at 09:43, pari hesabi statistic...@hotmail.com wrote: Hello everybody I need to approximate the amount of integral by using legendre quadrature. I have written a program which doesn't give me a logical answer; Can anybody help me and send the correct program? For example

[R] Legendre quadrature

2014-05-01 Thread pari hesabi
Hello everybody I need to approximate the amount of integral by using legendre quadrature. I have written a program which doesn't give me a logical answer; Can anybody help me and send the correct program? For example the approximated amount of integral of ( x ^2) on (-1,1) based on legendre

[R] legendre quadrature

2014-05-01 Thread pari hesabi
Hello everybody I need to approximate the amount of integral by using legendre quadrature. I have written a program which doesn't give me a logical answer; Can anybody help me and send the correct program? For example the approximated amount of integral of ( x ^2) on (-1,1) based on legendre

Re: [R] legendre quadrature

2014-05-01 Thread Prof. Dr. Matthias Kohl
you could use package distrEx: library(distrEx) GLIntegrate(function(x) x^2, lower = -1, upper = 1, order = 50) hth Matthias On 01.05.2014 09:43, pari hesabi wrote: Hello everybody I need to approximate the amount of integral by using legendre quadrature. I have written a program which

Re: [R] legendre quadrature

2014-05-01 Thread Enrico Schumann
On Thu, 01 May 2014, pari hesabi statistic...@hotmail.com writes: Hello everybody I need to approximate the amount of integral by using legendre quadrature. I have written a program which doesn't give me a logical answer; Can anybody help me and send the correct program? For example the