Skip to content

Conversation

@smichr
Copy link
Member

@smichr smichr commented Aug 5, 2019

References to other Issues or PRs

closes #11697

Brief description of what is fixed or changed

A docstring has been updated to indicate the relationship between the parameterized solution and the actual solution: the parameterized solution does not produce coprime results from coprime input.

I also noticed that symbolic gcd was not being handled so updated the routine that removes the gcd of parameterized solutions.

Other comments

Release Notes

  • solvers
    • the gcd of parameterized ternary solutions is now removed

@sympy-bot
Copy link

sympy-bot commented Aug 5, 2019

Hi, I am the SymPy bot (v147). I'm here to help you write a release notes entry. Please read the guide on how to write release notes.

Your release notes are in good order.

Here is what the release notes will look like:

  • solvers
    • the gcd of parameterized ternary solutions is now removed (#17348 by @smichr)

This will be added to https://github.com/sympy/sympy/wiki/Release-Notes-for-1.5.

Note: This comment will be updated with the latest check if you edit the pull request. You need to reload the page to see it.

Click here to see the pull request description that was parsed.

<!-- Your title above should be a short description of what
was changed. Do not include the issue number in the title. -->

#### References to other Issues or PRs
<!-- If this pull request fixes an issue, write "Fixes #NNNN" in that exact
format, e.g. "Fixes #1234". See
https://github.com/blog/1506-closing-issues-via-pull-requests . Please also
write a comment on that issue linking back to this pull request once it is
open. -->

closes #11697 

#### Brief description of what is fixed or changed

A docstring has been updated to indicate the relationship between the parameterized solution and the actual solution: the parameterized solution does not produce coprime results from coprime input.

I also noticed that symbolic gcd was not being handled so updated the routine that removes the gcd of parameterized solutions.

#### Other comments


#### Release Notes

<!-- Write the release notes for this release below. See
https://github.com/sympy/sympy/wiki/Writing-Release-Notes for more information
on how to write release notes. The bot will check your release notes
automatically to see if they are formatted correctly. -->

<!-- BEGIN RELEASE NOTES -->
* solvers
    * the gcd of parameterized ternary solutions is now removed
<!-- END RELEASE NOTES -->

Update

The release notes on the wiki have been updated.

@smichr smichr changed the title 11697: note re parametric soln; remove gcd diophantine: note re parametric soln; remove gcd Aug 5, 2019
@smichr
Copy link
Member Author

smichr commented Aug 5, 2019

Unless there are suggestions for changes I plan nothing else for this.

@codecov
Copy link

codecov bot commented Aug 5, 2019

Codecov Report

Merging #17348 into master will increase coverage by 0.088%.
The diff coverage is 100%.

@@              Coverage Diff              @@
##            master    #17348       +/-   ##
=============================================
+ Coverage   74.603%   74.692%   +0.088%     
=============================================
  Files          627       631        +4     
  Lines       162864    163167      +303     
  Branches     38214     38282       +68     
=============================================
+ Hits        121503    121874      +371     
+ Misses       35979     35959       -20     
+ Partials      5382      5334       -48

@jksuom
Copy link
Member

jksuom commented Aug 6, 2019

Edited release note entry.

>>> parametrize_ternary_quadratic(4*x**2 + 2*y**2 - 3*z**2)
(2*p**2 - 3*q**2, -4*p**2 + 12*p*q - 6*q**2, 4*p**2 - 8*p*q + 6*q**2)
More than one solution can be represented by a given ``p`` and
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is the extra indentation necessary?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My feeling was that this is more of a parenthetical comment and I wanted it to appear as such. Perhaps putting it under Notes would be better?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That might be better unless the presence of examples will confuse Sphinx.

@jksuom
Copy link
Member

jksuom commented Aug 11, 2019

This should clarify the nature of the parametrization, pointing out that primitive solutions are not necessarily among those parametrized by integers.

@jksuom jksuom merged commit 3b5e300 into sympy:master Aug 11, 2019
@smichr smichr deleted the diop branch August 12, 2019 16:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

diophantine: Parametrized solutions of ternary quadratics is incomplete

4 participants