Changes between Version 2 and Version 3 of Ticket #11653


Ignore:
Timestamp:
08/05/11 21:26:37 (9 years ago)
Author:
JGuzman
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #11653 – Description

    v2 v3  
    99def pulse(tonset, tdur, amp):
    1010
    11   """ returns a square pulse as a function of x, f(x) the pulse is defined as follows:  t
    12   onset -- start of pulse
    13   tdur   -- duration of pulse
    14   amp    -- amplitude of pulse """
     11  """ returns a square pulse as a function of x, f(x) the pulse is defined as follows:  t onset -- start of pulse  tdur   -- duration of pulse  amp    -- amplitude of pulse """
    1512
    1613  f(x)= amp*(sign(x-tonset)/2-sign(x-tonset-tdur)/2)
     
    4239According to Nils Bruin, the problem is that Maxima 'at' function. As described in Ticket #385, this can be a problem with the implementation of 'at' for SR.
    4340
     41Strange enough, when using other functions, the solver works nicely
     42
     43sage: dvdx = diff(v, x)-x -sin(x) == 0
     44
     45sage: desolve(de=dvdx, ivar=x, dvar=v, ics=[http://trac.sagemath.org/sage_trac/log/?revs=0 "[0,0]"])
     46
     47now Sage returns 1/2*x!^2 - cos(x) + 1
     48
    4449Detailed information (and a real example) can be found here: http://groups.google.com/group/sage-support/browse_thread/thread/8cc67d39510faca2