-
-
Notifications
You must be signed in to change notification settings - Fork 491
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
Real domain for symbolic variables #6559
Comments
comment:1
#6802 is a duplicate of this ticket. |
This comment has been minimized.
This comment has been minimized.
Author: Golam Mortuza Hossain |
comment:3
How does this relate to pynac 0.1.9 which is in Sage 4.2.1? ~ Adam |
comment:4
Applied patch and the following errors were returned:
|
Work Issues: needs rebase |
Attachment: trac_6559-domain-and-latex_name-for-variable.take2.3.patch.gz rebased to 4.3.1.rc0 |
Changed keywords from none to pynac |
Changed work issues from needs rebase to none |
Changed author from Golam Mortuza Hossain to Golam Mortuza Hossain, Burcin Erocal |
comment:7
Attachment: trac_6559-referee.patch.gz I uploaded a revised version of Golam's patch at attachment: trac_6559-domain-and-latex_name-for-variable.take2.3.patch, and a referee patch at attachment: trac_6559-referee.patch. The changes in the revised patch over Golam's version are
The referee patch reorganizes the new code a little to make it more efficient. Apparently the new variable creation is an important operation and being sloppy here greatly increases doctest timings. It also adds new methods like Only the patches
This ticket depends on the new pynac package here: http://sage.math.washington.edu/home/burcin/pynac/pynac-0.1.11.spkg which in turns depends on the patches at #7822, #7876, #7363, #7955, #7957, #7916 and #6465 (in that order). The changes here seem to slow down the maxima interface dramatically, so I'm leaving this as needs work for now. |
comment:8
Attachment: trac_6559-referee.take2.patch.gz New patches up, ready for review. Apply only:
Depends on the pynac package here: http://sage.math.washington.edu/home/burcin/pynac/pynac-0.1.11.spkg and the tickets #7822, #7876, #7363, #7955, #7957, #7916 and #6465 (in that order). |
comment:9
I applied the patches in this order:
There's only one failure (sage -tp, not long) in arith.py, which is a documentation thing and unrelated to this ticket. |
comment:10
Is it likely that the rebase referred to in #6961 might affect other patches than just that one? Read that before refereeing, in any case. |
comment:11
I can't even begin to say where these are from... but
seem to be related to just random changes in 4.3.1, while
and a few friends seem to be related to something in pickling changing (I get no other errors with things like that). In addition, I am getting quite a few segfaults when testing against 4.3.1.
all do. Probably I should not have applied all patches at once, but I was impatient :) |
Reviewer: Karl-Dieter Crisman |
comment:12
Update: None of the previous errors happen in this symbolics queue until I hit this ticket, so they are definitely due to this one. More comments:
So perhaps the referee patch has changed something weird? |
comment:13
Followup: Adding the referee patch causes a number of segfaults in things relating to assumptions. For example, the calculus/calculus.py doctest where it is assumed that abs(q)<1, and the one in calculus/wester.py where it is assumed that x>=y, y>=z, z>=x. It is not consistent whether the assumption itself or the thing using the assumption causes the hang. Is it possible that the is* methods or the info flags in ginac/decl.pxi are responsible? This is a question out of ignorance; I don't see how they would interfere with Maxima or the use of it by (e.g.) symbolic_sum, but it's all I can think of. Also, the citation.pyx and random_tests.py are repeatable. |
comment:14
I can't reproduce these problems on my 64-bit laptop with Sage 4.3.2.alpha0, gcc 4.3.4. I'll try on a 32-bit machine tomorrow. Note that the rebased patch on #6961 applies without problems to a clean 4.3.2.alpha0 here. Though my patch queue contains Is it possible that the problems you report might be caused by the fact that your tree got messed up by the git style patches attached to #6465? |
comment:15
I cannot reproduce these problems on a 32-bit Debian Lenny box after applying all the symbolics patches and updating pynac to version 0.11. |
comment:16
Possibly, but wouldn't that have made everything not work, as opposed to just a few weird segfaults related to assumptions and a couple other things? Also, when I say I applied them all at once, what I mean is I applied them one after the other using hg_sage.import_patch, which I believe is equivalent to hg import. |
comment:17
I tried once more with the patches downloaded from trac. I cannot reproduce any problems. Here is an easier way to test all the patches:
|
Changed reviewer from Karl-Dieter Crisman to Karl-Dieter Crisman, Ross Kyprianou |
comment:18
|
comment:19
See #6465 comment:19. Two patches on that ticket needed to be rebased to 4.3.2. Unfortunately, I didn't have time to update the patch tarball. You can use
Then rebuild sage, and proceed with the tests... Many thanks for looking at this. |
comment:20
The hg qgoto didnt work. (And if its easier at any stage to blow away the pynac clone and start again, feel free to suggest that).
|
comment:21
Hi Ross, The last output you posted doesn't make sense to me. Did you update to 4.3.3.alpha0 since comment:18? In comment:18, the output shows that I don't have a working copy of 4.3.3.alpha0 yet. Unfortunately, it will take me a couple of days update to that. |
comment:22
Youre right - made a minor mistake so I had to start again and I could only find a version of 4.3.3.alpha0 easily and I used that (apologies). To get some testing done sooner than later Ill go back to 4.3.3 for now. Thanks. |
comment:23
:) Ticket #7955 was merged in 4.3.3.alpha0, so it's natural that the patch fails. If you just do
the rest of the patches should apply without problems. Thanks again for your time. |
comment:24
Looks good to me. See #6961 for the order in which to merge patches. |
Changed reviewer from Karl-Dieter Crisman, Ross Kyprianou to Karl-Dieter Crisman, Ross Kyprianou, Minh Van Nguyen |
Merged: sage-4.3.3.alpha1 |
comment:25
Merged in this order: |
In new symbolics, the default symbolic variables are complex.
However, sometime it is useful/desirable to make the domain of
variables to be real.
Currently, there are no way to specify the domain of variables
in Sage although underlying Ginac allows it. For example: following
would to be good to have.
Instructions for installing these patches (sage-4.1.1)
(1) Pynac patch
(a) Get the pynac spkg
http://sage.math.washington.edu/home/burcin/pynac/pynac-0.1.8.p2.spkg
(b) Apply the pynac patch for enhanced symbols
http://www.math.unb.ca/~ghossain/texname-and-domain-of-symbols-pynac.patch
(c) install the patched spkg in Sage.
OR if you are feeling lazy, you can directly install my patched copy of pynac from here
http://www.math.unb.ca/~ghossain/pynac-0.1.8.p2-symbols.spkg
(2) Sage patch:
Apply the attached sage patch after modified pynac spkg is installed
Notes:
#6403 will also be resolved by this patch
#6340 patch conflicts with this patch. This patch here should supersede the patch at #6340.
Component: symbolics
Keywords: pynac
Author: Golam Mortuza Hossain, Burcin Erocal
Reviewer: Karl-Dieter Crisman, Ross Kyprianou, Minh Van Nguyen
Merged: sage-4.3.3.alpha1
Issue created by migration from https://trac.sagemath.org/ticket/6559
The text was updated successfully, but these errors were encountered: