-
-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
Elliptic curve #18682
Elliptic curve #18682
Conversation
🟠Hi, I am the SymPy bot (v157). I've noticed that some of your commits add or delete files. Since this is sometimes done unintentionally, I wanted to alert you about it. This is an experimental feature of SymPy Bot. If you have any feedback on it, please comment at sympy/sympy-bot#75. The following commits add new files: If these files were added/deleted on purpose, you can ignore this message. |
✅ Hi, I am the SymPy bot (v157). 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:
This will be added to https://github.com/sympy/sympy/wiki/Release-Notes-for-1.6. 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.
Update The release notes on the wiki have been updated. |
Can someone help me to resolve this please. |
It looks like you should merge current master (https://github.com/sympy/sympy/wiki/Development-workflow#how-to-merge) before adding new commits. The last one should be removed first ( |
a85cccc
to
a57e957
Compare
now its okay, i guess. |
Are you going to make the object an instance of If this is not made If it is made |
@jksuom I read about elliptic curves and found that there is a lot of difference in algorithms when the domain is QQ or ,ZZ or is finite. So i suggest making difference class for elliptic curves over finite fields and rational fields. |
The domain should be a field so |
i have corrected the points function. I think that most of the things implemented was wrong. I will correct those. |
SymPy's notation of finite field is wrong, and it may actually be called a 'field' if the order is prime |
The first task is to make doctests pass. I have added some comments to that end. |
Division |
|
The arguments |
sympy/ntheory/ec.py
Outdated
return '({}, {})'.format(self.x, self.y) | ||
|
||
def __sub__(self, other): | ||
return self + -other |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This will probably be the same as return self.__add__(-other)
.
I have a few minor comments but otherwise I think that this is ready be merged. Only the name should be changed. |
@jksuom Done. |
how to remove this circular import error? |
@jksuom I am not able to push the changes it is giving this error. |
It got push, don't know why it was showing error earlier. |
when i added elliptic curve in |
I wonder how that did happen. Only the module name was changed. |
It looks like GitHub had some issues: https://twitter.com/githubstatus?lang=en It is probably not necessary to import elliptic curves from |
1 similar comment
It looks like GitHub had some issues: https://twitter.com/githubstatus?lang=en It is probably not necessary to import elliptic curves from |
should i squash all the commits. |
We should preserve the commits of the original author, or at least some of them. Can you squash selected commits? |
okay. |
f48cd5f
to
851554e
Compare
Support 'in' operation Calculate points in FF
Add references Fix discriminant Add docstring Implement part of torsion list Return sympy type Generate all torsion points Fix type conversion
Docstring of add and mul
Fix type error Calculate point order. Implement elliptic curve point class. Support negative point multiplier
Fix j-invariant representation
minor changes corrected some doctest added call function corrected test cases minor change normalise corrected test case changed domain correctd torsion point minor change minor change minor change minor change added points_x and imporved code for order of points minor improvements corrected equation corrected test case minor improvement rename changed name and minor improvement removed init
851554e
to
dc09734
Compare
Done. Is this okay? |
I'll look more closely tomorrow but I think it is ok. |
Thanks, this should be a good basis for computations with elliptic curves. It can be extended later if desired. The I have removed WIP from the title. |
revives #2449