Changes between Version 2 and Version 3 of Ticket #11653
- Timestamp:
- 08/05/11 21:26:37 (9 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #11653 – Description
v2 v3 9 9 def pulse(tonset, tdur, amp): 10 10 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 """ 15 12 16 13 f(x)= amp*(sign(x-tonset)/2-sign(x-tonset-tdur)/2) … … 42 39 According 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. 43 40 41 Strange enough, when using other functions, the solver works nicely 42 43 sage: dvdx = diff(v, x)-x -sin(x) == 0 44 45 sage: desolve(de=dvdx, ivar=x, dvar=v, ics=[http://trac.sagemath.org/sage_trac/log/?revs=0 "[0,0]"]) 46 47 now Sage returns 1/2*x!^2 - cos(x) + 1 48 44 49 Detailed information (and a real example) can be found here: http://groups.google.com/group/sage-support/browse_thread/thread/8cc67d39510faca2