#6756: [with patch, needs review] Implement ``diff`` format symbolic derivative 
in
new symbolics
-------------------------+--------------------------------------------------
 Reporter:  gmhossain    |       Owner:                       
     Type:  enhancement  |      Status:  new                  
 Priority:  major        |   Milestone:                       
Component:  symbolics    |    Keywords:                       
 Reviewer:               |      Author:  Golam Mortuza Hossain
   Merged:               |  
-------------------------+--------------------------------------------------
Changes (by gmhossain):

 * cc: ncalexan (added)


Comment:

 Replying to [comment:2 ncalexan]:
 > I am interested in reviewing this, but I'm not sure that I can at this
 time.  I have a heavily modified {{{Sage Version 4.1.rc1, Release Date:
 2009-07-07}}} tree that I can't really upgrade right now.  I have applied
 this patch and installed your modified spkg.  I am getting the following
 doctest failures
 >
 {{{

  **********************************************************************
  File "/Users/ncalexan/sage-4.1-OSX-10.5-Intel-64bit-i386-Darwin/devel
 /sage-main/sage/symbolic/derivative.py", line 51:
      sage: f(x).diff(x)
  Expected:
      diff(f(x), x, 1)
  Got:
      D[0](f)(x)
 }}}

 [[BR]]


 Thanks Nick for trying it out. From this error, it seems
 "diff_derivative_level" flag wasn't set to
 value greater than "0". It could be that "set_diff_derivative_level()"
 failed to set it properly.

 [[BR]]

 > When I work from the command line, I get things like
 > {{{
 > sage: default_level=set_diff_derivative_level()
 > sage: set_diff_derivative_level(1)
 > sage: f(x) = function('f', x)
 >
 ---------------------------------------------------------------------------
 > TypeError: Symbolic function f takes exactly 2 arguments (1 given)
 > }}}

 [[BR]]

 This looks really weired to me. Does it work before calling
 "set_diff_derivative_level()"?


 I can suggest you to check three things

   (1) Ensure in "symbolic/pynac.pyx" you have a line:
 {{{
       "cdef public int diff_derivative_level = 0"
 }}}
    May be you can set it to "1", to enable "diff" by default.


   (2) In "symbolic/all.py" you have a line:
 {{{
      "from derivative import symbolic_diff"
 }}}
   (3) In "calculus/calculus.py" the following line is commented out or
 removed
 {{{
       "syms['diff'] = dummy_diff"
 }}}
 If these three lines are fine then it should work. Some doctests may it
 still
 fail if "set_diff_derivative_level()" isn't working properly but you can
 always change value in (1) manually without using it.

 Please let me know if that works.

 Best,

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/6756#comment:3>
Sage <http://sagemath.org/>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica, 
and MATLAB

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"sage-trac" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/sage-trac?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to