lutusp wrote:
> I'm aware there has been some discussion of this issue in the past,
> but I would like to renew it. I understand that canonical DE notation
> isn't on everyone's short list of high priorities, but I think
> students and those with little Sage exposure would appreciate the
> ability to enter a textbook equation with few changes.
> 
> It would be great to see this user entry:
> 
> y'(x) + y - 1
> 
> Automatically become this Sage syntax:
> 
> diff(y,x) + y - 1
> 


Mathematica allows the y'(x) syntax (well, there it is y'[x]), which 
makes the differential equations nice to write in MMA.

However, I don't think y.diff(x,1) is too extremely different to be 
really ugly.  Maybe we could even shorten it to:

y.d(x,1)

or

y.d(x,2)

(which sort of resembles \frac{dy}{dx} or \frac{d^2y}{dx^2})

The nice thing about using ".d" or ".diff" is that partial differential 
expressions have the same syntax: u.d(x,2) or u.diff(x,2)

Jason

-- 
Jason Grout


--~--~---------~--~----~------------~-------~--~----~
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to 
sage-devel-unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to