1 | initial version |
the interfaces maxima
and sympy
are not able to symbolically evaluate your integral, whose exact value is $\pi^2/4$. however, it is possible that you use algorithm='mathematica_free'
, which gives the good indefinite integral. (in v.7.6. this option is broken as you can see in the sagecell, but it has been fixed in the latest development version!).
to compute the integral numerically, let's try mpmath:
sage: from mpmath import mp
sage: mp.dps = 200
sage: print(mp.quad(lambda t: t*mp.sin(t)/(1+mp.cos(t)^2), [0, mp.pi]))
2.4674011002723396547086227499690377838284248518101976566033373440550112056048013107504433509296380579560064784435057860194430870305075116819026544194962994152475999640516439076428765103082100821952173
compare with:
sage: N(pi^2/4, digits=200)
2.4674011002723396547086227499690377838284248518101976566033373440550112056048013107504433509296380579560064784435057860194430870305075116819026544194962994152475999640516439076428765103082100821952173
PS: for arbitrary precision numerical integration using "Sage functions", i've found this hint: #8321 which leads me to thinking that it is a feature which has not been implemented, although i'm not 100% sure..
2 | No.2 Revision |
the interfaces maxima
and sympy
are not able to symbolically evaluate your the integral, whose exact value is $\pi^2/4$. however, it is possible that you use algorithm='mathematica_free'
, which gives the good indefinite integral. (in v.7.6. this option is broken as you can see in the sagecell, but it has been fixed in the latest development version!).
to compute the integral numerically, let's try mpmath:
sage: from mpmath import mp
sage: mp.dps = 200
sage: print(mp.quad(lambda t: t*mp.sin(t)/(1+mp.cos(t)^2), [0, mp.pi]))
2.4674011002723396547086227499690377838284248518101976566033373440550112056048013107504433509296380579560064784435057860194430870305075116819026544194962994152475999640516439076428765103082100821952173
2.4674011002723396547086227499690377838284248518101976566033373440550112056048013107504433509296380579560064784435057860194430870305075116819026544194962994152475999640516439076428765103082100821952173
compare with:
sage: N(pi^2/4, digits=200)
2.4674011002723396547086227499690377838284248518101976566033373440550112056048013107504433509296380579560064784435057860194430870305075116819026544194962994152475999640516439076428765103082100821952173
PS: for arbitrary precision numerical integration using "Sage functions", i've found this hint: #8321 which leads me to thinking that it is a feature which has not been implemented, although i'm not 100% sure..
3 | No.3 Revision |
the interfaces maxima
and sympy
are not able to symbolically evaluate the integral, whose exact value is $\pi^2/4$. however, it is possible that you use algorithm='mathematica_free'
, which gives the good indefinite integral. (in integral, and then use subs
to get the definite integral (although notice that in v.7.6. this option is broken as you can see in the sagecell, but it has been fixed in the latest development version!).
to compute the integral numerically, let's try mpmath:
sage: from mpmath import mp
sage: mp.dps = 200
sage: print(mp.quad(lambda t: t*mp.sin(t)/(1+mp.cos(t)^2), [0, mp.pi]))
2.4674011002723396547086227499690377838284248518101976566033373440550112056048013107504433509296380579560064784435057860194430870305075116819026544194962994152475999640516439076428765103082100821952173
compare with:
sage: N(pi^2/4, digits=200)
2.4674011002723396547086227499690377838284248518101976566033373440550112056048013107504433509296380579560064784435057860194430870305075116819026544194962994152475999640516439076428765103082100821952173
PS: for arbitrary precision numerical integration using "Sage functions", i've found this hint: #8321 which leads me to thinking that it is a feature which has not been implemented, although i'm not 100% sure..
4 | No.4 Revision |
the interfaces maxima
and sympy
are not able to symbolically evaluate the integral, whose exact value is $\pi^2/4$. however, it is possible that you use algorithm='mathematica_free'
, which gives the good indefinite integral, and then use subs
to get the definite integral (although notice that in v.7.6. this option is broken as you can see in the sagecell, but it has been fixed in the latest development version!).
to compute the integral numerically, numerically and with arbitrary precision, let's try mpmath:
sage: from mpmath import mp
sage: mp.dps = 200
sage: print(mp.quad(lambda t: t*mp.sin(t)/(1+mp.cos(t)^2), [0, mp.pi]))
2.4674011002723396547086227499690377838284248518101976566033373440550112056048013107504433509296380579560064784435057860194430870305075116819026544194962994152475999640516439076428765103082100821952173
compare with:
sage: N(pi^2/4, digits=200)
2.4674011002723396547086227499690377838284248518101976566033373440550112056048013107504433509296380579560064784435057860194430870305075116819026544194962994152475999640516439076428765103082100821952173
PS: for arbitrary precision numerical integration using "Sage functions", i've found this hint: #8321 which leads me to thinking that it is a feature which has not been implemented, although i'm not 100% sure..
5 | No.5 Revision |
the interfaces maxima
and , sympy
, giac
, are not able to symbolically evaluate the integral, whose exact value is $\pi^2/4$. however, it is possible that you use algorithm='mathematica_free'
, which gives the good indefinite integral, and then use subs
to get the definite integral (although notice that in v.7.6. this option is broken as you can see in the sagecell, but it has been fixed in the latest development version!).
to compute the integral numerically and with arbitrary precision, let's try mpmath:
sage: from mpmath import mp
sage: mp.dps = 200
sage: print(mp.quad(lambda t: t*mp.sin(t)/(1+mp.cos(t)^2), [0, mp.pi]))
2.4674011002723396547086227499690377838284248518101976566033373440550112056048013107504433509296380579560064784435057860194430870305075116819026544194962994152475999640516439076428765103082100821952173
compare with:
sage: N(pi^2/4, digits=200)
2.4674011002723396547086227499690377838284248518101976566033373440550112056048013107504433509296380579560064784435057860194430870305075116819026544194962994152475999640516439076428765103082100821952173
PS: for arbitrary precision numerical integration using "Sage functions", i've found this hint: #8321 which leads me to thinking that it is a feature which has not been implemented, although i'm not 100% sure..
6 | No.6 Revision |
the interfaces maxima
, sympy
, giac
, are not able to symbolically evaluate the integral, integral (*), whose exact value is $\pi^2/4$. however, it is possible that you use algorithm='mathematica_free'
, which gives the good indefinite integral, and then use subs
to get the definite integral (although notice that in v.7.6. this option is broken as you can see in the sagecell, but it has been fixed in the latest development version!).
to compute the integral numerically and with arbitrary precision, precision (**), let's try mpmath:
sage: from mpmath import mp
sage: mp.dps = 200
sage: print(mp.quad(lambda t: t*mp.sin(t)/(1+mp.cos(t)^2), [0, mp.pi]))
2.4674011002723396547086227499690377838284248518101976566033373440550112056048013107504433509296380579560064784435057860194430870305075116819026544194962994152475999640516439076428765103082100821952173
compare with:
sage: N(pi^2/4, digits=200)
2.4674011002723396547086227499690377838284248518101976566033373440550112056048013107504433509296380579560064784435057860194430870305075116819026544194962994152475999640516439076428765103082100821952173
PS: (*) in Sage v.8.0.beta8
(**): for arbitrary precision numerical integration using "Sage functions", i've found this hint: #8321 which leads me to thinking that it is a feature which has not been implemented, although i'm not 100% sure..
7 | No.7 Revision |
the interfaces maxima
, sympy
, giac
, are not able to symbolically evaluate the integral (*), whose exact value is $\pi^2/4$. however, it is possible that you use algorithm='mathematica_free'
, which gives the good indefinite integral, and then use subs
to get the definite integral (although notice that in v.7.6. this option is broken as you can see in the sagecell, but it has been fixed in the latest development version!).
to compute the integral numerically and with arbitrary precision (**), let's try mpmath:
sage: from mpmath import mp
sage: mp.dps = 200
sage: print(mp.quad(lambda t: t*mp.sin(t)/(1+mp.cos(t)^2), [0, mp.pi]))
2.4674011002723396547086227499690377838284248518101976566033373440550112056048013107504433509296380579560064784435057860194430870305075116819026544194962994152475999640516439076428765103082100821952173
compare with:
sage: N(pi^2/4, digits=200)
2.4674011002723396547086227499690377838284248518101976566033373440550112056048013107504433509296380579560064784435057860194430870305075116819026544194962994152475999640516439076428765103082100821952173
(*) in Sage v.8.0.beta8
(**): (**) for arbitrary precision numerical integration using "Sage functions", i've found this hint: #8321 which leads me to thinking that it is a feature which has not been implemented, although i'm not 100% sure..
8 | No.8 Revision |
the interfaces maxima
, sympy
, giac
, are not able to symbolically evaluate the integral (*), whose exact value is $\pi^2/4$. however, it is possible that you use algorithm='mathematica_free'
, which gives the good indefinite integral, and then use subs
to get the definite integral (although notice that in v.7.6. this option is broken as you can see in the sagecell, but it has been fixed in the latest development version!).
to compute the integral numerically and with arbitrary precision (**), let's try mpmath:
sage: from mpmath import mp
sage: mp.dps = 200
sage: print(mp.quad(lambda t: t*mp.sin(t)/(1+mp.cos(t)^2), [0, mp.pi]))
2.4674011002723396547086227499690377838284248518101976566033373440550112056048013107504433509296380579560064784435057860194430870305075116819026544194962994152475999640516439076428765103082100821952173
compare with:to:
sage: N(pi^2/4, digits=200)
2.4674011002723396547086227499690377838284248518101976566033373440550112056048013107504433509296380579560064784435057860194430870305075116819026544194962994152475999640516439076428765103082100821952173
(*) in Sage v.8.0.beta8
(**) for arbitrary precision numerical integration using "Sage functions", i've found this hint: #8321 which leads me to thinking that it is a feature which has not been implemented, although i'm not 100% sure..
9 | No.9 Revision |
the interfaces maxima
, sympy
, giac
, fricas
, are not able to symbolically evaluate the integral (*), whose exact value is $\pi^2/4$. however, it is possible that you use algorithm='mathematica_free'
, which gives the good indefinite integral, and then use subs
to get the definite integral (although notice that in v.7.6. this option is broken as you can see in the sagecell, but it has been fixed in the latest development version!).
to compute the integral numerically and with arbitrary precision (**), let's try mpmath:
sage: from mpmath import mp
sage: mp.dps = 200
sage: print(mp.quad(lambda t: t*mp.sin(t)/(1+mp.cos(t)^2), [0, mp.pi]))
2.4674011002723396547086227499690377838284248518101976566033373440550112056048013107504433509296380579560064784435057860194430870305075116819026544194962994152475999640516439076428765103082100821952173
compare to:
sage: N(pi^2/4, digits=200)
2.4674011002723396547086227499690377838284248518101976566033373440550112056048013107504433509296380579560064784435057860194430870305075116819026544194962994152475999640516439076428765103082100821952173
(*) in Sage v.8.0.beta8
(**) for arbitrary precision numerical integration using "Sage functions", i've found this hint: #8321 which leads me to thinking that it is a feature which has not been implemented, although i'm not 100% sure..
10 | No.10 Revision |
the interfaces maxima
, sympy
, giac
, fricas
, are not able to symbolically evaluate the integral (*), whose exact value is $\pi^2/4$. however, it is possible that you use algorithm='mathematica_free'
, which gives the good indefinite integral, and then use subs
to get the definite integral (although notice that in v.7.6. this option is broken as you can see in the sagecell, but it has been fixed in the latest development version!).version!).
to compute the integral numerically and with arbitrary precision (**), let's try mpmath:
sage: from mpmath import mp
sage: mp.dps = 200
sage: print(mp.quad(lambda t: t*mp.sin(t)/(1+mp.cos(t)^2), [0, mp.pi]))
2.4674011002723396547086227499690377838284248518101976566033373440550112056048013107504433509296380579560064784435057860194430870305075116819026544194962994152475999640516439076428765103082100821952173
compare to:
sage: N(pi^2/4, digits=200)
2.4674011002723396547086227499690377838284248518101976566033373440550112056048013107504433509296380579560064784435057860194430870305075116819026544194962994152475999640516439076428765103082100821952173
(*) in Sage v.8.0.beta8
(**) for arbitrary precision numerical integration using "Sage functions", i've found this hint: #8321 which leads me to thinking that it is a feature which has not been implemented, although i'm not 100% sure..