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

subresultants_pg_amv.py contains functions for computing #10374

Merged
merged 13 commits into from Jan 19, 2016

Conversation

akritas
Copy link
Contributor

@akritas akritas commented Jan 8, 2016

(a) euclidean/sturmian sequences in Q[x] and Z[x],
(b) subresultant polynomial sequences

It does NOT use the function prem which "messes up" the signs
in the euclidean/sturmian sequences. Instead it uses rem and remZ.

(a) euclidean/sturmian sequences in Q[x] and Z[x],
(b) subresultant polynomial sequences

It does NOT use the function prem which "messes up" the signs
in the euclidean/sturmian sequences. Instead it uses rem and remZ.
(a) euclidean/sturmian sequences in Q[x] and Z[x],
(b) subresultant polynomial remainder sequences

It does NOT use the function prem which "messes up" the signs
in the euclidean/sturmian sequences. Instead it uses rem and remZ.
added new function final_touches for the Van Vleck method
as well as several other changes final_touches and other minor changes
to various functions
@asmeurer
Copy link
Member

The Travis tests are failing because of code quality. You can run ./bin/test quality to see the errors. There are also failures because of PyPy, but those are due to bugs in PyPy, so you can ignore those.

@asmeurer
Copy link
Member

@mattpap

the statement <from sympy import *> and removed some end of lines
at the end of the file.
@akritas
Copy link
Contributor Author

akritas commented Jan 11, 2016

The Travis tests were complaining about the stmt from sympy import *,
and so I commented it out in the file. However, now when I import
separately the module and sympy I cannot run any examples. It tells
me "global name 'degree' is not defined"

Quoting Aaron Meurer notifications@github.com:

The Travis tests are failing because of code quality. You can run
./bin/test quality to see the errors. There are also failures
because of PyPy, but those are due to bugs in PyPy, so you can
ignore those.


Reply to this email directly or view it on GitHub:
#10374 (comment)

@akritas
Copy link
Contributor Author

akritas commented Jan 12, 2016

everything worked out fine the 4th time.
the only thing I cannot make is define the assert polys.

Quoting Aaron Meurer notifications@github.com:

The Travis tests are failing because of code quality. You can run
./bin/test quality to see the errors. There are also failures
because of PyPy, but those are due to bugs in PyPy, so you can
ignore those.


Reply to this email directly or view it on GitHub:
#10374 (comment)

correctly print 2x2 sylvester2 matrices
to correctly print the final matrix s2
@asmeurer
Copy link
Member

It wants you to import things manually like from sympy import (degree, Poly, ...)

of the file; also chnaged the oder of a statement in subresultants_vv
@akritas
Copy link
Contributor Author

akritas commented Jan 14, 2016

I did it; now that I have the whole package working
I will make updates to the docstrings and other minor
tune ups.

will let you know when I am done.

Quoting Aaron Meurer notifications@github.com:

It wants you to import things manually like from sympy import (degree, Poly, ...)


Reply to this email directly or view it on GitHub:
#10374 (comment)

with LC(p) < 0, and slightly modified the docstring
2. slightly altered code + docstring of  modified_subresultants_amv(p,q,x)
3. slightly altered the docstring of sturm_pg(p, q, x, method=0)
4. same for sturm_amv(p, q, x, method=0)
5. slightly altered code + docstring of subresultants_pg(p,q,x)
@akritas
Copy link
Contributor Author

akritas commented Jan 14, 2016

After today's changes I think I am done! Let me know if there is
anything else to be done.

Quoting Aaron Meurer notifications@github.com:

It wants you to import things manually like from sympy import (degree, Poly, ...)


Reply to this email directly or view it on GitHub:
#10374 (comment)

@asmeurer
Copy link
Member

@jksuom do you have any thoughts on this?

@jksuom
Copy link
Member

jksuom commented Jan 15, 2016

I believe the algorithms are useful. Some modifications would be needed: The file should probably be moved to polys. Its name should be changed, preferably to indicate that the algorithms are for polynomials with integer and rational coefficients. Test file should be created. I expect that to be the bulk of the remaining task.

@akritas
Copy link
Contributor Author

akritas commented Jan 15, 2016

Very good points both of them. Regarding the name of the
file, I agree that it is rather cryptic and hard to decipher.

Maybe subresultants_qq_zz is better. Any better suggestions?

I will also add some comments for the module as a whole.

As for the test file, it would help me a lot if I could see one.

Quoting Kalevi Suominen notifications@github.com:

I believe the algorithms are useful. Some modifications would be
needed: The file should probably be moved to polys. Its name should
be changed, preferably to indicate that the algorithms are for
polynomials with integer and rational coefficients. Test file should
be created. I expect that to be the bulk of the remaining task.


Reply to this email directly or view it on GitHub:
#10374 (comment)

@asmeurer
Copy link
Member

Take a look at the files in the various tests directories. The basic idea is that you write a file test_subresultants_qq_zz.py in the tests directory next to your module with functions like

def test_some_func():
    assert some_func(input) == output
    assert some_func(input2) == output2

where "some_func" is the function you are testing. You can then run the tests with

./bin/test subresultants

@akritas
Copy link
Contributor Author

akritas commented Jan 17, 2016

Thank you. Very helpful. I did it and passed the travis test.
Let me know if it OK.

Quoting Aaron Meurer notifications@github.com:

Take a look at the files in the various tests directories. The
basic idea is that you write a file test_subresultants_qq_zz.py in
the tests directory next to your module with functions like

def test_some_func():
    assert some_func(input) == output
    assert some_func(input2) == output2

where "some_func" is the function you are testing. You can then run
the tests with

./bin/test subresultants

Reply to this email directly or view it on GitHub:
#10374 (comment)

@jksuom
Copy link
Member

jksuom commented Jan 17, 2016

Thank you. That was quick. This looks good to me.

@jksuom
Copy link
Member

jksuom commented Jan 19, 2016

I think this is ready. Thank you for your work.

jksuom pushed a commit that referenced this pull request Jan 19, 2016
subresultants_pg_amv.py contains functions for computing
@jksuom jksuom merged commit 1ab5e8c into sympy:master Jan 19, 2016
@akritas
Copy link
Contributor Author

akritas commented Jan 19, 2016

It was a great pleasure and I learned a lot!

Quoting Kalevi Suominen notifications@github.com:

I think this is ready. Thank you for your work.


Reply to this email directly or view it on GitHub:
#10374 (comment)

@asmeurer
Copy link
Member

@akritas can you add something to https://github.com/sympy/sympy/wiki/Release-Notes-for-1.0 about this

@akritas
Copy link
Contributor Author

akritas commented Jan 19, 2016

done

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants