Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

doctest failure in doc/en/constructions/calculus.rst due to upgrade to Maxima 5.19.1 #6782

Closed
sagetrac-drkirkby mannequin opened this issue Aug 20, 2009 · 7 comments
Closed

Comments

@sagetrac-drkirkby
Copy link
Mannequin

sagetrac-drkirkby mannequin commented Aug 20, 2009

On Solaris (SPARC), the following test failed. Both ECL and Maxima were updated - ECL version 9.8.4, Maxima version 5.19.1


----------------------------------------------------------------------
| Sage Version 4.1.1, Release Date: 2009-08-14                       |
| Type notebook() for the GUI, and license() for information.        |
----------------------------------------------------------------------
Thu Aug 20 20:02:37 BST 2009
dsage-trial tmp directory doesn't exist - creating ...
This script will run the unit tests for DSage
File "/export/home/drkirkby/sage/sage-4.1.1/devel/sage/doc/en/constructions/calculus.rst", line 117:
    sage: maxima(f).powerseries(x,0)
Expected:
    ('sum((-1)^i2*2^(2*i2)*bern(2*i2)*x^(2*i2)/(i2*(2*i2)!),i2,1,inf))/2
Got:
    'sum((-1)^i2*2^(2*i2-1)*bern(2*i2)*x^(2*i2)/(i2*(2*i2)!),i2,1,inf)

Component: calculus

Keywords: maxima

Issue created by migration from https://trac.sagemath.org/ticket/6782

@sagetrac-drkirkby sagetrac-drkirkby mannequin added this to the sage-4.1.2 milestone Aug 20, 2009
@sagetrac-drkirkby sagetrac-drkirkby mannequin changed the title Doctest failure in sage-4.1.1/devel/sage/doc/en/constructions/calculus.rst 1 doctest failure in sage-4.1.1/devel/sage/doc/en/constructions/calculus.rst Aug 20, 2009
@aghitza
Copy link

aghitza commented Aug 20, 2009

comment:2

This one is trivial; see attached patch.

@aghitza
Copy link

aghitza commented Aug 20, 2009

Changed keywords from none to maxima

@aghitza aghitza changed the title 1 doctest failure in sage-4.1.1/devel/sage/doc/en/constructions/calculus.rst doctest failure in doc/en/constructions/calculus.rst due to upgrade to Maxima 5.19.0 Aug 20, 2009
@aghitza aghitza assigned aghitza and unassigned burcin Aug 20, 2009
@aghitza
Copy link

aghitza commented Aug 20, 2009

Attachment: trac_6782.patch.gz

apply after spkg's at #6564 and #6699

@sagetrac-drkirkby
Copy link
Mannequin Author

sagetrac-drkirkby mannequin commented Aug 21, 2009

comment:3

The log was generated with Maxima 5.19.1, not 5.19.0, so I'm changing the title slightly to reflect this.

@sagetrac-drkirkby sagetrac-drkirkby mannequin changed the title doctest failure in doc/en/constructions/calculus.rst due to upgrade to Maxima 5.19.0 doctest failure in doc/en/constructions/calculus.rst due to upgrade to Maxima 5.19.1 Aug 21, 2009
@sagetrac-drkirkby
Copy link
Mannequin Author

sagetrac-drkirkby mannequin commented Aug 21, 2009

comment:4

Are these mathematically equivalent? It seems to me the factor in the numerator has changed from (2i2) to (2i2-1) and denominator from 2 to 1. That seems a different result to me.

I tried what I think the test is doing in Mathematica and got:

In[7]:= f=Log[Sin[x]/x]

            Sin[x]
Out[7]= Log[------]
              x

In[8]:=  Series[f,{x,0,12}]

          2    4      6      8       10           12
        -x    x      x      x       x        691 x           13
Out[8]= --- - --- - ---- - ----- - ------ - ---------- + O[x]
         6    180   2835   37800   467775   3831077250

In[9]:=

I've no idea what's right or not.

Dave

@aghitza
Copy link

aghitza commented Aug 21, 2009

comment:5

The difference is 2^(2*i2)/2 versus 2^(2*i2-1). Yes, they are the same.

@sagetrac-mvngu
Copy link
Mannequin

sagetrac-mvngu mannequin commented Sep 2, 2009

comment:7

This is fixed by #6699.

@sagetrac-mvngu sagetrac-mvngu mannequin removed the s: needs review label Sep 2, 2009
@sagetrac-mvngu sagetrac-mvngu mannequin closed this as completed Sep 2, 2009
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants