Bug with Integral command in online worksheets and GeoGebra 6 desktop
Not a Problem
Hello everyone,
Calculating some integrals for approximating functions with polynomials I found that this integral cannot be calculated with GeoGebra 6 (desktop and online version):
Integral[
(1/sqrt(1-x^2))*(2 x^2 - 1)*(abs(x)) ,-1,1]/Integral[(1/sqrt(1-x^2))*(2 x^2 -
1)^2 ,-1,1]
However, GeoGebra 5 (desktop) can calculate it without any problem.
I noticed this issue when I upload this worksheet (made with GeoGebra 5): https://ggbm.at/FYmWtRPV
It works perfect in my desktop with GeoGebra 5.
However, it does not work fine online.
I tried opening the same file (see attached) with GeoGebra 6 (desktop) and it has the same issue.
thanks for any help.
Kind regards.
Files:
ChecbyshevandLe...
Although Using CAS in GeoGebra 6 works fine.
Instead of
try using
or (better if the functions won't change as the CAS won't need to be loaded)
The problem is not calculating that one. The issue is with this one:
Sequence[Integral[w(x)*Element[Chebyshev, i]*f0(x),-1,1]/Integral[ w(x)*(Element[Chebyshev,i])^2,-1,1],i,1,11]
Where w(x)=1/sqrt(1-x)^2
It is interesting that GGB5 can handle this integral but GGB6 can't.
Besides, I would like to calculate the numerical value.
I will try something else. :)
Thanks Michael. Kind regards...
The online version uses numerical integrals (which doesn't work as some of those functions have vertical asymptotes). If the functions (and domains) aren't changing then precalculating with CopyFreeObject() should do the trick!
Comments have been locked on this page!