On 2014-06-23, Karl Schultheisz <[email protected]> wrote: > I have installed git and chosen my name and email address. What commands > should I run to apply this patch? I have been reading the developer manual, > but at this point I am not interested in contributing code to Sage. I just > want to apply patches. this is basically "reviewing tickets". Although you need a developer's access to follow typical recepies from there. However, without the latter you are still OK. What you can do is the following: (from your SAGEROOT directory)
git fetch http://trac.sagemath.org/sage.git u/pbruin/16224-maxima_to_sage you should see something like: >From http://trac.sagemath.org/sage * branch u/pbruin/16224-maxima_to_sage -> FETCH_HEAD Now we merge the stuff we just fetched: git merge FETCH_HEAD this will open up an editor to record the merge commit message; write something there (normally it will already have some text to record). After you saved this file you will see somthing like Merge made by the 'recursive' strategy. src/sage/interfaces/maxima_lib.py | 58 ++++++++++++++++++++++++++++++++++------------------------ 1 file changed, 34 insertions(+), 24 deletions(-) OK, patch applied, finally run ./sage -b HTH, Dmitrii > > > On Mon, Jun 23, 2014 at 9:45 AM, Karl Schultheisz <[email protected]> > wrote: > >> Thank you. It is obviously time that I learn to use git. >> >> On Monday, June 23, 2014 9:10:09 AM UTC-4, Dima Pasechnik wrote: >>> >>> On 2014-06-23, Dima Pasechnik <[email protected]> wrote: >>> > On 2014-06-23, Karl Schultheisz <[email protected]> wrote: >>> >> Sorry, I haven't. I don't know how. >>> > well, this is actually easy to fix, as no recompilation of Sage is >>> > needed here: the only change is in src/sage/intefaces/maxima_lib.py >>> > >>> > http://git.sagemath.org/sage.git/diff/src/sage/interfaces/ >>> maxima_lib.py?id=3e25c1357e6ecc551afe3e27633fdbbd01982708 >>> > >>> > if you have Sage installed locally, know how to use git then >>> > you can get this patch applied and then run `sage -b`. >>> > >>> > In case you do not know anything about git, you can still get a copy >>> > of the updated file from here: >>> > http://git.sagemath.org/sage.git/plain/src/sage/interfaces/ >>> maxima_lib.py >>> oops, sorry, this will give you an only unpatched copy... >>> So you really need to get the patch somehow. >>> > >>> > save it as SAGE_ROOT/src/sage/intefaces/maxima_lib.py >>> > and then run `sage -b`. >>> > >>> > HTH, >>> > Dmitrii >>> >> >>> >> On Monday, June 23, 2014 8:38:46 AM UTC-4, Dima Pasechnik wrote: >>> >>> >>> >>> On 2014-06-23, Karl Schultheisz <[email protected] <javascript:>> >>> wrote: >>> >>> > I'm using Sage 6.2 on Arch Linux. I have posted before about sums >>> being >>> >>> > wrong >>> >>> ><https://groups.google.com/d/msg/sage-support/IgC78rcdO7c/ >>> qTWzpA9f-P8J>, >>> >>> > and I am happy to see that the community took action. Thanks! I >>> have >>> >>> been >>> >>> > seeing other errors that may or may not be related to those >>> addressed in >>> >>> > the link above. >>> >>> > >>> >>> > I open a new Sage session (command line). The following code ought >>> to >>> >>> > return (e^x - 1)/x. >>> >>> > >>> >>> > sage: k = var('k') >>> >>> > sage: sum(x^k/factorial(k+1),k,0,oo) >>> >>> > 1/4*sqrt(pi)*sqrt(x)*e^(1/2*x) >>> >>> > >>> >>> > This looks similar to the sort of nonsense it was spitting out when >>> >>> misinterpreting >>> >>> > Bessel functions from Maxima <http://trac.sagemath.org/ticket/16224>. >>> >>> >>> In >>> >>> > the same session, if I run the summation command again, the result >>> is >>> >>> >>> >>> did you try applying the patch from #16224 ? >>> >>> >>> >>> > different. >>> >>> > >>> >>> > sage: sum(x^k/factorial(k+1),k,0,oo) >>> >>> > sum(x^k/factorial(k + 1), k, 0, +Infinity) >>> >>> > >>> >>> > And after this it will not simplify any sums, even ones it would >>> have >>> >>> done >>> >>> > correctly on the first try: >>> >>> > >>> >>> > sage: sum(x^k/factorial(k),k,0,oo) >>> >>> > sum(x^k/factorial(k), k, 0, +Infinity) >>> >>> > >>> >>> > Even a reset doesn't help. (As a side-note, the exit command >>> doesn't >>> >>> > survive reset.) >>> >>> > >>> >>> > sage: reset() >>> >>> > sage: k = var('k') >>> >>> > sage: sum(x^k/factorial(k),k,0,oo) >>> >>> > sum(x^k/factorial(k), k, 0, +Infinity) >>> >>> > sage: exit >>> >>> > >>> >>> > >>> >>> --------------------------------------------------------------------------- >>> >>> >>> > NameError Traceback (most >>> recent >>> >>> call >>> >>> > last) >>> >>> > /opt/sage/local/lib/python2.7/site-packages/sage/all_cmdline.py >>> in >>> >>> ><module>() >>> >>> > ----> 1 exit >>> >>> > >>> >>> > NameError: name 'exit' is not defined >>> >>> > >>> >>> > Finite sums seem to be ok. >>> >>> > >>> >>> > sage: sum(x^k,k,0,3) >>> >>> > x^3 + x^2 + x + 1 >>> >>> > sage: m = var('m') >>> >>> > sage: sum(x^k,k,0,m) >>> >>> > (x^(m + 1) - 1)/(x - 1) >>> >>> > >>> >>> > Any help is greatly appreciated. >>> >>> > >>> >>> >>> >>> >>> >> >>> > >>> >>> -- >> You received this message because you are subscribed to a topic in the >> Google Groups "sage-support" group. >> To unsubscribe from this topic, visit >> https://groups.google.com/d/topic/sage-support/7bPMqk_ORNo/unsubscribe. >> To unsubscribe from this group and all its topics, send an email to >> [email protected]. >> To post to this group, send email to [email protected]. >> Visit this group at http://groups.google.com/group/sage-support. >> For more options, visit https://groups.google.com/d/optout. >> > -- You received this message because you are subscribed to the Google Groups "sage-support" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/sage-support. For more options, visit https://groups.google.com/d/optout.
