Re: [sage-support] Re: integrating sin(t)/t

2020-09-30 Thread slelievre
2020 21:18:46 UTC, Karima Shahzad:
>
> Do you recommend Sage-9.2 for the users if they're working with Sage-9.1?

Preliminary release notes to help you decide:

  https://wiki.sagemath.org/ReleaseTours/sage-9.2

Personally I would recommend upgrading to the latest
development version, which has lots of improvements,
if you don't mind building it from source.
That's the version I use daily.

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-support/13b84461-f0a9-44dd-a5bf-7542eda04b4fo%40googlegroups.com.


Re: [sage-support] Re: integrating sin(t)/t

2020-09-29 Thread Karima Shahzad
Do you recommend Sage-9.2 for the users if they're working with Sage-9.1?

On Tue, Sep 29, 2020 at 12:54 PM Eric Gourgoulhon 
wrote:

> I confirm the issue with the Taylor series with Sage 9.1. Fortunately, the
> bug seems to have been fixed for Sage 9.2. As Emmanuel, I get the correct
> Taylor series with Sage 9.2.beta13.
>
> Le mardi 29 septembre 2020 à 09:36:09 UTC+2, Emmanuel Charpentier a écrit :
>
>> I can’t reproduce your problem :
>>
>> sage: sage.version.version
>> '9.2.beta13'
>> sage: var('t')
>> t
>> sage: assume(x>0)
>> sage: f(x)=integrate(sin(t)/t,t,0,x)
>> sage: f
>> x |--> sin_integral(x)
>> sage: taylor(f(x),x,0,10)
>> 1/3265920*x^9 - 1/35280*x^7 + 1/600*x^5 - 1/18*x^3 + x
>>
>> My platform is Debian testing running on core i7 + 16 GB RAM ; sage is
>> built to use as much system packages as possible. hat are your platforms ?
>>
>> HTH,
>> ​
>> Le lundi 28 septembre 2020 à 22:03:56 UTC+2, fqgo...@colby.edu a écrit :
>>
>>> I am trying to see how to do a standard calculus exercise in Sage. I
>>> want a power series for the integral of sin(x)/x. I tried:
>>>
>>> sage: var('t')
>>> t
>>> sage: assume(x>0)
>>> sage: f(x)=integrate(sin(t)/t,t,0,x)
>>> sage: f
>>> x |--> sin_integral(x)
>>> sage: taylor(f(x),x,0,10)
>>> 73/466560*x^9 - 127/35280*x^7 + 31/600*x^5 - 7/18*x^3 + x
>>>
>>> The first weirdness is that Sage can't compute the integral unless I add
>>> the "assume(x>0)"; I'm not sure why.
>>>
>>> The second weirdness is that the Taylor series is wrong!
>>> Taylor(Si(x),x,0,10) gives the same answer.
>>>
>>> Fernando
>>>
>>>
>>> --
>>> ==
>>> Fernando Q. Gouvea
>>> Carter Professor of Mathematics
>>> Colby College
>>> Mayflower Hill 5836
>>> Waterville, ME 04901   fqgo...@colby.edu   
>>> http://www.colby.edu/~fqgouvea
>>>
>>> The object of opening the mind, as of opening the mouth, is to shut it
>>> again on something solid.
>>>   -- G. K. Chesterton, Autobiography.
>>>
>>>
>>> --
> You received this message because you are subscribed to the Google Groups
> "sage-support" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to sage-support+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/sage-support/fa8ad53c-16e3-46ad-8d73-c2b7a28224acn%40googlegroups.com
> 
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-support/CADp1E_qu9WCnDnGZ3ExUTovfzkQO6_5Pyc6nLFamGNEfaNGRpA%40mail.gmail.com.


Re: [sage-support] Re: integrating sin(t)/t

2020-09-29 Thread Eric Gourgoulhon
Le mardi 29 septembre 2020 à 14:27:38 UTC+2, fqgo...@colby.edu a écrit :

> Good news! When is 9.2 expected to be ready?
>

Sage 9.2 should be released within a few weeks (the beta cycle is almost 
over and the release candidate cycle should start soon). Meanwhile, you can 
take a look at the new features:  
https://wiki.sagemath.org/ReleaseTours/sage-9.2
Best wishes,

Eric.

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-support/e756d63c-5e97-4c95-abe7-fd698fa9805cn%40googlegroups.com.


Re: [sage-support] Re: integrating sin(t)/t

2020-09-29 Thread Dima Pasechnik
On Tue, Sep 29, 2020 at 1:36 PM Henri Girard  wrote:
>
> Now if you build it :)
>
TBF, building Sage on Windows is less than trivial. :-(

> On 29/09/2020 14:27, Fernando Gouvea wrote:
>
> Good news! When is 9.2 expected to be ready?
>
> Fernando
>
> On 9/29/2020 3:54 AM, Eric Gourgoulhon wrote:
>
> I confirm the issue with the Taylor series with Sage 9.1. Fortunately, the 
> bug seems to have been fixed for Sage 9.2. As Emmanuel, I get the correct 
> Taylor series with Sage 9.2.beta13.
>
> Le mardi 29 septembre 2020 à 09:36:09 UTC+2, Emmanuel Charpentier a écrit :
>>
>> I can’t reproduce your problem :
>>
>> sage: sage.version.version
>> '9.2.beta13'
>> sage: var('t')
>> t
>> sage: assume(x>0)
>> sage: f(x)=integrate(sin(t)/t,t,0,x)
>> sage: f
>> x |--> sin_integral(x)
>> sage: taylor(f(x),x,0,10)
>> 1/3265920*x^9 - 1/35280*x^7 + 1/600*x^5 - 1/18*x^3 + x
>>
>> My platform is Debian testing running on core i7 + 16 GB RAM ; sage is built 
>> to use as much system packages as possible. hat are your platforms ?
>>
>> HTH,
>>
>> Le lundi 28 septembre 2020 à 22:03:56 UTC+2, fqgo...@colby.edu a écrit :
>>>
>>> I am trying to see how to do a standard calculus exercise in Sage. I want a 
>>> power series for the integral of sin(x)/x. I tried:
>>>
>>> sage: var('t')
>>> t
>>> sage: assume(x>0)
>>> sage: f(x)=integrate(sin(t)/t,t,0,x)
>>> sage: f
>>> x |--> sin_integral(x)
>>> sage: taylor(f(x),x,0,10)
>>> 73/466560*x^9 - 127/35280*x^7 + 31/600*x^5 - 7/18*x^3 + x
>>>
>>> The first weirdness is that Sage can't compute the integral unless I add 
>>> the "assume(x>0)"; I'm not sure why.
>>>
>>> The second weirdness is that the Taylor series is wrong! 
>>> Taylor(Si(x),x,0,10) gives the same answer.
>>>
>>> Fernando
>>>
>>>
>>> --
>>> ==
>>> Fernando Q. Gouvea
>>> Carter Professor of Mathematics
>>> Colby College
>>> Mayflower Hill 5836
>>> Waterville, ME 04901
>>> fqgo...@colby.edu   http://www.colby.edu/~fqgouvea
>>>
>>> The object of opening the mind, as of opening the mouth, is to shut it
>>> again on something solid.
>>>   -- G. K. Chesterton, Autobiography.
>>>
> --
> You received this message because you are subscribed to the Google Groups 
> "sage-support" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to sage-support+unsubscr...@googlegroups.com.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/sage-support/fa8ad53c-16e3-46ad-8d73-c2b7a28224acn%40googlegroups.com.
>
> --
> =
> Fernando Q. Gouvea http://www.colby.edu/~fqgouvea
> Carter Professor of Mathematics
> Dept. of Mathematics and Statistics
> Colby College
> 5836 Mayflower Hill
> Waterville, ME 04901
>
> "Verily and forsooth," replied Goodgulf darkly. "In the past year
> strange and fearful wonders I have seen. Fields sown with barley reap
> crabgrass and fungus, and even small gardens reject their artichoke
> hearts. There has been a hot day in December and a blue
> moon. Calendars are made with a month of Sundays and a blue-ribbon
> Holstein bore alive two insurance salesmen. The earth splits and the
> entrails of a goat were found tied in square knots. The face of the
> sun blackens and the skies have rained down soggy potato chips."
>   -- Harvard Lampoon, "Bored of the Rings"
>
> --
> You received this message because you are subscribed to the Google Groups 
> "sage-support" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to sage-support+unsubscr...@googlegroups.com.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/sage-support/5214e93f-8636-38a6-127b-4d7e5d5e8e1c%40colby.edu.
>
> --
> You received this message because you are subscribed to the Google Groups 
> "sage-support" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to sage-support+unsubscr...@googlegroups.com.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/sage-support/f77c7b29-b5cd-1df8-547e-81dc04eb9759%40gmail.com.

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-support/CAAWYfq3-YFqEKWGnfsCRxwBUnOtdzkOAei2Zj3CSrysx%2Bi6vXg%40mail.gmail.com.


Re: [sage-support] Re: integrating sin(t)/t

2020-09-29 Thread Henri Girard

Now if you build it :)

On 29/09/2020 14:27, Fernando Gouvea wrote:


Good news! When is 9.2 expected to be ready?

Fernando

On 9/29/2020 3:54 AM, Eric Gourgoulhon wrote:
I confirm the issue with the Taylor series with Sage 9.1. 
Fortunately, the bug seems to have been fixed for Sage 9.2. As 
Emmanuel, I get the correct Taylor series with Sage 9.2.beta13.


Le mardi 29 septembre 2020 à 09:36:09 UTC+2, Emmanuel Charpentier a 
écrit :


I can’t reproduce your problem :

|sage: sage.version.version '9.2.beta13' sage: var('t') t sage:
assume(x>0) sage: f(x)=integrate(sin(t)/t,t,0,x) sage: f x |-->
sin_integral(x) sage: taylor(f(x),x,0,10) 1/3265920*x^9 -
1/35280*x^7 + 1/600*x^5 - 1/18*x^3 + x |

My platform is Debian testing running on core i7 + 16 GB RAM ;
sage is built to use as much system packages as possible. hat are
your platforms ?

HTH,

​
Le lundi 28 septembre 2020 à 22:03:56 UTC+2, fqgo...@colby.edu a
écrit :

I am trying to see how to do a standard calculus exercise in
Sage. I want a power series for the integral of sin(x)/x. I
tried:

sage: var('t')
t
sage: assume(x>0)
sage: f(x)=integrate(sin(t)/t,t,0,x)
sage: f
x |--> sin_integral(x)
sage: taylor(f(x),x,0,10)
73/466560*x^9 - 127/35280*x^7 + 31/600*x^5 - 7/18*x^3 + x

The first weirdness is that Sage can't compute the integral
unless I add the "assume(x>0)"; I'm not sure why.

The second weirdness is that the Taylor series is wrong!
Taylor(Si(x),x,0,10) gives the same answer.

Fernando


-- 
==

Fernando Q. Gouvea
Carter Professor of Mathematics
Colby College
Mayflower Hill 5836
Waterville, ME 04901
fqgo...@colby.edu   http://www.colby.edu/~fqgouvea

The object of opening the mind, as of opening the mouth, is to shut it
again on something solid.
   -- G. K. Chesterton, Autobiography.

--
You received this message because you are subscribed to the Google 
Groups "sage-support" group.
To unsubscribe from this group and stop receiving emails from it, 
send an email to sage-support+unsubscr...@googlegroups.com 
.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-support/fa8ad53c-16e3-46ad-8d73-c2b7a28224acn%40googlegroups.com 
.

--
=
Fernando Q. Gouveahttp://www.colby.edu/~fqgouvea
Carter Professor of Mathematics
Dept. of Mathematics and Statistics
Colby College
5836 Mayflower Hill
Waterville, ME 04901

"Verily and forsooth," replied Goodgulf darkly. "In the past year
strange and fearful wonders I have seen. Fields sown with barley reap
crabgrass and fungus, and even small gardens reject their artichoke
hearts. There has been a hot day in December and a blue
moon. Calendars are made with a month of Sundays and a blue-ribbon
Holstein bore alive two insurance salesmen. The earth splits and the
entrails of a goat were found tied in square knots. The face of the
sun blackens and the skies have rained down soggy potato chips."
   -- Harvard Lampoon, "Bored of the Rings"

--
You received this message because you are subscribed to the Google 
Groups "sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send 
an email to sage-support+unsubscr...@googlegroups.com 
.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-support/5214e93f-8636-38a6-127b-4d7e5d5e8e1c%40colby.edu 
.


--
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-support/f77c7b29-b5cd-1df8-547e-81dc04eb9759%40gmail.com.


Re: [sage-support] Re: integrating sin(t)/t

2020-09-29 Thread Fernando Gouvea

Good news! When is 9.2 expected to be ready?

Fernando

On 9/29/2020 3:54 AM, Eric Gourgoulhon wrote:
I confirm the issue with the Taylor series with Sage 9.1. Fortunately, 
the bug seems to have been fixed for Sage 9.2. As Emmanuel, I get the 
correct Taylor series with Sage 9.2.beta13.


Le mardi 29 septembre 2020 à 09:36:09 UTC+2, Emmanuel Charpentier a 
écrit :


I can’t reproduce your problem :

|sage: sage.version.version '9.2.beta13' sage: var('t') t sage:
assume(x>0) sage: f(x)=integrate(sin(t)/t,t,0,x) sage: f x |-->
sin_integral(x) sage: taylor(f(x),x,0,10) 1/3265920*x^9 -
1/35280*x^7 + 1/600*x^5 - 1/18*x^3 + x |

My platform is Debian testing running on core i7 + 16 GB RAM ;
sage is built to use as much system packages as possible. hat are
your platforms ?

HTH,

​
Le lundi 28 septembre 2020 à 22:03:56 UTC+2, fqgo...@colby.edu a
écrit :

I am trying to see how to do a standard calculus exercise in
Sage. I want a power series for the integral of sin(x)/x. I tried:

sage: var('t')
t
sage: assume(x>0)
sage: f(x)=integrate(sin(t)/t,t,0,x)
sage: f
x |--> sin_integral(x)
sage: taylor(f(x),x,0,10)
73/466560*x^9 - 127/35280*x^7 + 31/600*x^5 - 7/18*x^3 + x

The first weirdness is that Sage can't compute the integral
unless I add the "assume(x>0)"; I'm not sure why.

The second weirdness is that the Taylor series is wrong!
Taylor(Si(x),x,0,10) gives the same answer.

Fernando


-- 
==

Fernando Q. Gouvea
Carter Professor of Mathematics
Colby College
Mayflower Hill 5836
Waterville, ME 04901
fqgo...@colby.edu   http://www.colby.edu/~fqgouvea

The object of opening the mind, as of opening the mouth, is to shut it
again on something solid.
   -- G. K. Chesterton, Autobiography.

--
You received this message because you are subscribed to the Google 
Groups "sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send 
an email to sage-support+unsubscr...@googlegroups.com 
.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-support/fa8ad53c-16e3-46ad-8d73-c2b7a28224acn%40googlegroups.com 
.


--
=
Fernando Q. Gouvea http://www.colby.edu/~fqgouvea
Carter Professor of Mathematics
Dept. of Mathematics and Statistics
Colby College
5836 Mayflower Hill
Waterville, ME 04901

"Verily and forsooth," replied Goodgulf darkly. "In the past year
strange and fearful wonders I have seen. Fields sown with barley reap
crabgrass and fungus, and even small gardens reject their artichoke
hearts. There has been a hot day in December and a blue
moon. Calendars are made with a month of Sundays and a blue-ribbon
Holstein bore alive two insurance salesmen. The earth splits and the
entrails of a goat were found tied in square knots. The face of the
sun blackens and the skies have rained down soggy potato chips."
  -- Harvard Lampoon, "Bored of the Rings"

--
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-support/5214e93f-8636-38a6-127b-4d7e5d5e8e1c%40colby.edu.


Re: [sage-support] Re: integrating sin(t)/t

2020-09-29 Thread Fernando Gouvea

I'm running Sage 9.0 on a Windows 10 machine.

I get the same incorrect series from the built-in sin_integral function, 
so the problem is not the integration.


sage: taylor(sin_integral(x),x,0,10)
73/466560*x^9 - 127/35280*x^7 + 31/600*x^5 - 7/18*x^3 + x

Fernando

On 9/29/2020 3:36 AM, Emmanuel Charpentier wrote:


I can’t reproduce your problem :

|sage: sage.version.version '9.2.beta13' sage: var('t') t sage: 
assume(x>0) sage: f(x)=integrate(sin(t)/t,t,0,x) sage: f x |--> 
sin_integral(x) sage: taylor(f(x),x,0,10) 1/3265920*x^9 - 1/35280*x^7 
+ 1/600*x^5 - 1/18*x^3 + x |


My platform is Debian testing running on core i7 + 16 GB RAM ; sage is 
built to use as much system packages as possible. hat are your platforms ?


HTH,

​
Le lundi 28 septembre 2020 à 22:03:56 UTC+2, fqgo...@colby.edu a écrit :

I am trying to see how to do a standard calculus exercise in Sage.
I want a power series for the integral of sin(x)/x. I tried:

sage: var('t')
t
sage: assume(x>0)
sage: f(x)=integrate(sin(t)/t,t,0,x)
sage: f
x |--> sin_integral(x)
sage: taylor(f(x),x,0,10)
73/466560*x^9 - 127/35280*x^7 + 31/600*x^5 - 7/18*x^3 + x

The first weirdness is that Sage can't compute the integral unless
I add the "assume(x>0)"; I'm not sure why.

The second weirdness is that the Taylor series is wrong!
Taylor(Si(x),x,0,10) gives the same answer.

Fernando


-- 
==

Fernando Q. Gouvea
Carter Professor of Mathematics
Colby College
Mayflower Hill 5836
Waterville, ME 04901
fqgo...@colby.edu   http://www.colby.edu/~fqgouvea

The object of opening the mind, as of opening the mouth, is to shut it
again on something solid.
   -- G. K. Chesterton, Autobiography.

--
You received this message because you are subscribed to the Google 
Groups "sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send 
an email to sage-support+unsubscr...@googlegroups.com 
.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-support/7ad43be5-f59c-445e-981e-c0d8a42306f2n%40googlegroups.com 
.


--
=
Fernando Q. Gouvea http://www.colby.edu/~fqgouvea
Carter Professor of Mathematics
Dept. of Mathematics and Statistics
Colby College
5836 Mayflower Hill
Waterville, ME 04901

"Verily and forsooth," replied Goodgulf darkly. "In the past year
strange and fearful wonders I have seen. Fields sown with barley reap
crabgrass and fungus, and even small gardens reject their artichoke
hearts. There has been a hot day in December and a blue
moon. Calendars are made with a month of Sundays and a blue-ribbon
Holstein bore alive two insurance salesmen. The earth splits and the
entrails of a goat were found tied in square knots. The face of the
sun blackens and the skies have rained down soggy potato chips."
  -- Harvard Lampoon, "Bored of the Rings"

--
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-support/647abf1f-84e2-455f-598e-5290876d4825%40colby.edu.


[sage-support] Re: integrating sin(t)/t

2020-09-29 Thread Eric Gourgoulhon
I confirm the issue with the Taylor series with Sage 9.1. Fortunately, the 
bug seems to have been fixed for Sage 9.2. As Emmanuel, I get the correct 
Taylor series with Sage 9.2.beta13. 

Le mardi 29 septembre 2020 à 09:36:09 UTC+2, Emmanuel Charpentier a écrit :

> I can’t reproduce your problem :
>
> sage: sage.version.version
> '9.2.beta13'
> sage: var('t')
> t
> sage: assume(x>0)
> sage: f(x)=integrate(sin(t)/t,t,0,x)
> sage: f
> x |--> sin_integral(x)
> sage: taylor(f(x),x,0,10)
> 1/3265920*x^9 - 1/35280*x^7 + 1/600*x^5 - 1/18*x^3 + x
>
> My platform is Debian testing running on core i7 + 16 GB RAM ; sage is 
> built to use as much system packages as possible. hat are your platforms ?
>
> HTH,
> Le lundi 28 septembre 2020 à 22:03:56 UTC+2, fqgo...@colby.edu a écrit :
>
>> I am trying to see how to do a standard calculus exercise in Sage. I want 
>> a power series for the integral of sin(x)/x. I tried:
>>
>> sage: var('t')
>> t
>> sage: assume(x>0)
>> sage: f(x)=integrate(sin(t)/t,t,0,x)
>> sage: f
>> x |--> sin_integral(x)
>> sage: taylor(f(x),x,0,10)
>> 73/466560*x^9 - 127/35280*x^7 + 31/600*x^5 - 7/18*x^3 + x
>>
>> The first weirdness is that Sage can't compute the integral unless I add 
>> the "assume(x>0)"; I'm not sure why.
>>
>> The second weirdness is that the Taylor series is wrong! 
>> Taylor(Si(x),x,0,10) gives the same answer.
>>
>> Fernando
>>
>>
>> -- 
>> ==
>> Fernando Q. Gouvea
>> Carter Professor of Mathematics  
>> Colby College
>> Mayflower Hill 5836
>> Waterville, ME 04901fqgo...@colby.edu   
>> http://www.colby.edu/~fqgouvea
>>
>> The object of opening the mind, as of opening the mouth, is to shut it
>> again on something solid.
>>   -- G. K. Chesterton, Autobiography.
>>
>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-support/fa8ad53c-16e3-46ad-8d73-c2b7a28224acn%40googlegroups.com.


[sage-support] Re: integrating sin(t)/t

2020-09-29 Thread Emmanuel Charpentier


I can’t reproduce your problem :

sage: sage.version.version
'9.2.beta13'
sage: var('t')
t
sage: assume(x>0)
sage: f(x)=integrate(sin(t)/t,t,0,x)
sage: f
x |--> sin_integral(x)
sage: taylor(f(x),x,0,10)
1/3265920*x^9 - 1/35280*x^7 + 1/600*x^5 - 1/18*x^3 + x

My platform is Debian testing running on core i7 + 16 GB RAM ; sage is 
built to use as much system packages as possible. hat are your platforms ?

HTH,
Le lundi 28 septembre 2020 à 22:03:56 UTC+2, fqgo...@colby.edu a écrit :

> I am trying to see how to do a standard calculus exercise in Sage. I want 
> a power series for the integral of sin(x)/x. I tried:
>
> sage: var('t')
> t
> sage: assume(x>0)
> sage: f(x)=integrate(sin(t)/t,t,0,x)
> sage: f
> x |--> sin_integral(x)
> sage: taylor(f(x),x,0,10)
> 73/466560*x^9 - 127/35280*x^7 + 31/600*x^5 - 7/18*x^3 + x
>
> The first weirdness is that Sage can't compute the integral unless I add 
> the "assume(x>0)"; I'm not sure why.
>
> The second weirdness is that the Taylor series is wrong! 
> Taylor(Si(x),x,0,10) gives the same answer.
>
> Fernando
>
>
> -- 
> ==
> Fernando Q. Gouvea
> Carter Professor of Mathematics  
> Colby College
> Mayflower Hill 5836
> Waterville, ME 04901 fqgo...@colby.edu   
> http://www.colby.edu/~fqgouvea
>
> The object of opening the mind, as of opening the mouth, is to shut it
> again on something solid.
>   -- G. K. Chesterton, Autobiography.
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-support/7ad43be5-f59c-445e-981e-c0d8a42306f2n%40googlegroups.com.