On Wed, Oct 22, 2008 at 7:17 PM, Jason Grout
<[EMAIL PROTECTED]> wrote:
>
> Jim Clark wrote:
>>
>> On Oct 22, 2008, at 5:28 PM, Jason Grout wrote:
>>
>>> I've posted a patch to http://trac.sagemath.org/sage_trac/ticket/4343
>>>
>>> Can you apply the patch and test it out?
>>>
>>>
>>> Here is the new behavior:
>>>
>>>              sage: f(x,y) = x^n+y^n
>>>              sage: f.gradient()
>>>              ((x, y) |--> n*x^(n - 1), (x, y) |--> n*y^(n - 1))
>>>              sage: f.gradient([y,x])
>>>              ((x, y) |--> n*y^(n - 1), (x, y) |--> n*x^(n - 1))
>>>
>> Thanks for the quick response, Jason. As for applying the patch...
>>
>> I run sage from a binary distribution that I downloaded.
>> I know I can manually edit the calculus.py file in the executable
>> path on my system.
>> Will a changed file be picked up automatically when I run sage?
>>
>
> You have to do "sage -b" first.
>
> The -b makes Sage rebuild itself to incorporate changes.  The first time
> you run it, it will take a while (maybe 20 minutes?).  After that,
> depending on the changes you make, it will take seconds.

Actually it should now be very fast the first time, even for
binary installs.  If not, please let me know.

> If you're not sure how to apply the patch, probably the easiest way to
> apply the patch is to do the following at the sage command line:
>
> hg_sage.apply('http://trac.sagemath.org/sage_trac/attachment/ticket/4343/gradient.patch?format=raw')
>
> Then quit out of Sage, run sage -b, then start sage back up again.

William

--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to