-
-
Notifications
You must be signed in to change notification settings - Fork 528
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
pynac log function cannot handle float arguments <= 0 #7822
Comments
Attachment: trac_7822-py_log.patch.gz make py_log handle float arguments |
comment:2
This looks nice, but causes a serious speed regression: BEFORE:
AFTER:
Can this be fixed easily? |
comment:3
Also, there are an awful lot of "ln"s when I thought we were trying to get away from those and using "log"s. It makes sense to keep some, but maybe some should be changed to log to show preferred usage? |
Attachment: trac_7822-py_log.take2.patch.gz second try, faster this time |
comment:4
attachment: trac_7822-py_log.take2.patch fixes the speed problems, although it is still not as fast as before. It depends on a very small patch to pynac. I will post a pynac package with the fix later this week. Before:
After:
Re comment:3: The top level log function is a regular python function which handles precision, etc. Calling that in the doctest is not really testing the |
comment:5
New pynac package available here: http://sage.math.washington.edu/home/burcin/pynac/pynac-0.1.11.spkg A lot of other patches on trac depend on this one. I'd really appreciate a quick review. :) Apply only attachment: trac_7822-py_log.take2.patch |
comment:6
All works okay, and after careful checking the patch seems correct, modulo my weak understanding of Cython. I'll go ahead and put positive review, but someone please stop me if the whole PY_TYPE_CHECK stuff is not right. To Burcin: In general, it would be very helpful if you could put a specific link to the changeset in Pynac (in the online hg server) which corresponds to each fix of a Sage issue. |
Reviewer: Karl-Dieter Crisman |
comment:7
Merged trac_7822-py_log.take2.patch. |
Merged: sage-4.3.3.alpha1 |
After changes in #7490 to sage.symbolic.pynac.py_log, symbolic log function cannot handle float arguments <= 0:
Attached patch fixes the problem.
CC: @jasongrout
Component: symbolics
Author: Burcin Erocal
Reviewer: Karl-Dieter Crisman
Merged: sage-4.3.3.alpha1
Issue created by migration from https://trac.sagemath.org/ticket/7822
The text was updated successfully, but these errors were encountered: