-
-
Notifications
You must be signed in to change notification settings - Fork 480
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
Reals sets consisting of intervals and isolated points #13125
Comments
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
comment:3
Patch? |
comment:4
Replying to @kcrisman:
uploaded |
Initial patch |
Changed author from Jordi Saludes and Ares Ribó to Volker Braun |
This comment has been minimized.
This comment has been minimized.
comment:5
Attachment: trac_13125_real_set.patch.gz I'm taking over this ticket since I need this for piecewise functions. I'm not sure what happened with the originally proposed patch, but what was attached here is not the actual code. |
comment:7
Is In fact, maybe these should inherit from something related to that... probably not, but just raising the possibility. How do I get more exotic sets like the union of |
comment:8
It think it is better to stick to the category of finite unions of intervals and points, then with functions defined on such sets and their periodic extensions (like 1 on [0, 1], 0 on (1,2), then extend periodically in one or both directions to get square wave). Things with infinite unions lead to accumulation points and cannot really be handled in a uniform way, I suspect. |
comment:9
Yes, I was being silly :) |
Attachment: trac_13125_realsets.patch.gz Patch for realsets.py |
comment:10
I just attached the original patch. I did not notice before that the initial patch was not correctly uploaded, I am very sorry for that. |
Changed author from Volker Braun to Volker Braun , Jordi Saludes , Ares Ribó |
This comment has been minimized.
This comment has been minimized.
Attachment: trac_13125_misc.patch.gz Updated patch |
comment:12
I've added the authors to my patch and incorporated any methods that made sense to me. Ares, since your patch would take a bit of work to make use of the Sage class hierarchy and since docstrings are not quite according to Sage specs I propose that we base the implementation on what I have currently posted. The imho only thing left is to decide what to do with the |
This comment has been minimized.
This comment has been minimized.
comment:13
Replying to @vbraun:
We will move the toGf method into another paquet, since we use it to support our MOLTO project demo (D6.2.pdf) and it is not directly related to realsets. |
Branch: u/rws/ticket/13125 |
Branch pushed to git repo; I updated commit sha1. This was a forced push. New commits: |
comment:50
Agree that it should be a separate ticket. It just wasn't clear to me in the beginning that things were this messed up. I've split off the fixing-infinity part into #11506 |
comment:51
I let this slip off, sorry Volker. I think there should be no coercion because there is no way to deal with these (semi)infinite intervals. However if we are forced to make this a coercion, then it should be less than infinity since my (very anecdotal) evidence says that most computations won't escape to That being said, I think this should not be positively reviewed as it stands. Do you think Nils would be a good person to ask about this, someone else, or go directly to sage-devel? |
comment:52
I've moved all infinity-related commits to #11506, let's move the discussion there. No coercion means: comparison by memory location. |
comment:53
Okay, but the branch currently doesn't merge cleanly |
comment:54
Just to be clear (since Volker set this to positive review after moving the infinity-related stuff to #11506): it wasn't my intention to give a positive review except for that example. I haven't looked at the real sets code at all. |
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:57
OK, I didn't notice that the real sets code had already been reviewed. |
Branch pushed to git repo; I updated commit sha1 and set ticket back to needs_review. Last 10 new commits:
|
Changed branch from u/vbraun/ticket/13125 to |
Finite unions of open/closed/semi-closed subsets of the real line, for example
This ticket also encountered a number of bugs in the comparison of infinity with various field elements like
These are now also fixed and extensive doctests were added.
CC: @kcrisman @tscrim @robertwb
Component: calculus
Author: Volker Braun , Jordi Saludes , Ares Ribó
Branch/Commit:
c818746
Reviewer: Ralf Stephan, Peter Bruin
Issue created by migration from https://trac.sagemath.org/ticket/13125
The text was updated successfully, but these errors were encountered: