 |
|
List Archives > 
Maple User Group List Archive > 
Archive by date > 
This Month By Date > 
This Month By Topic
[MUG] HOWTO solve system where solution is piecewise?
| [MUG] HOWTO solve system where solution is piecewise? |
|
Author:
Posted: Thu, 28 Nov 2002 15:29:14 +0100
|
>> From: "stef.pillaert"
This is a multi-part message in MIME format.
------_=_NextPart_001_01C296EA.86857935
Content-Type: text/plain;
charset="utf-8"
Content-Transfer-Encoding: base64
SGVsbG8sDQpzdXBwb3NlIEknbSBsb29raW5nIGZvciB0aGUgZnVuY3Rpb24gdGhhdCBpcyB0aGUg
c29sdXRpb24gb2YgdGhlIGZvbGxvd2luZyBzeXN0ZW0gb2YgZXEuOg0KZm9yIGFsbCB2YWx1ZXMg
b2YgeCwgZHkoeCkvZHg9MSBPUiBkeS9keCBpcyBub3QgZGVmaW5lZCwgYnV0IHRoZSBmdW5jdGlv
biBoYXMgYSBqdW1wIGZyb20gc29tZSB2YWx1ZSB5MSB0byB5Mj15MSt4Lg0KVGhlIEJDJ3MgYXJl
IHkoMCk9MCBhbmQgeSg0KT01DQogDQpBIHNvbHV0aW9uIHRvIHRoaXMgcHJvYmxlbSBpczogcGll
Y2V3aXNlKHg8MSx4LHg+PTEsIHgrMSkuDQogDQpJcyB0aGVyZSBhIHdheSB0byBtYWtlIE1BUExF
IGZpbmQgdGhpcyBzb2x1dGlvbj8NCiANClRoYW5rcywNClN0ZWYuDQo=
------_=_NextPart_001_01C296EA.86857935
Content-Type: text/html;
charset="utf-8"
Content-Transfer-Encoding: base64
PCFET0NUWVBFIEhUTUwgUFVCTElDICItLy9XM0MvL0RURCBIVE1MIDQuMCBUcmFuc2l0aW9uYWwv
L0VOIj48SFRNTD48SEVBRD48TUVUQSBIVFRQLUVRVUlWPSJDb250ZW50LVR5cGUiIENPTlRFTlQ9
InRleHQvaHRtbDsgY2hhcnNldD11dGYtOCI+PC9IRUFEPjxCT0RZPjxESVY+SGVsbG8sPC9ESVY+
CjxESVY+c3VwcG9zZSBJJ20gbG9va2luZyBmb3IgdGhlIGZ1bmN0aW9uIHRoYXQgaXMgdGhlIHNv
bHV0aW9uJm5ic3A7b2YgdGhlIApmb2xsb3dpbmcgc3lzdGVtIG9mIGVxLjo8L0RJVj4KPERJVj5m
b3IgYWxsIHZhbHVlcyBvZiB4LCBkeSh4KS9keD0xIE9SIGR5L2R4IGlzJm5ic3A7bm90IGRlZmlu
ZWQsIGJ1dCB0aGUgCmZ1bmN0aW9uIGhhcyBhIGp1bXAgZnJvbSBzb21lIHZhbHVlIHkxIHRvIHky
PXkxK3guPC9ESVY+CjxESVY+VGhlIEJDJ3MgYXJlIHkoMCk9MCBhbmQgeSg0KT01PC9ESVY+CjxE
SVY+Jm5ic3A7PC9ESVY+CjxESVY+QSZuYnNwO3NvbHV0aW9uIHRvIHRoaXMgcHJvYmxlbSBpczog
cGllY2V3aXNlKHgmbHQ7MSx4LHgmZ3Q7PTEsIHgrMSkuPC9ESVY+CjxESVY+Jm5ic3A7PC9ESVY+
CjxESVY+SXMgdGhlcmUgYSB3YXkgdG8gbWFrZSBNQVBMRSBmaW5kIHRoaXMgc29sdXRpb24/PC9E
SVY+CjxESVY+Jm5ic3A7PC9ESVY+CjxESVY+VGhhbmtzLDwvRElWPgo8RElWPlN0ZWYuPC9ESVY+
PC9CT0RZPjwvSFRNTD4=
------_=_NextPart_001_01C296EA.86857935--
|
| [MUG] HOWTO solve system where solution is piecewise? |
|
Author: Stef Pillaert
Posted: Tue, 3 Dec 2002 09:24:22 +0100
|
>> From: "Stef Pillaert" "stef.pillaert"
Hello,
suppose I'm looking for the function that is the solution of the following
system of eq.:
for all values of x, dy(x)/dx=1 OR dy/dx is not defined, but the function
has a jump from some value y1 to y2=y1+x.
The BC's are y(0)=0 and y(4)=5
A solution to this problem is: piecewise(x<1,x,x>=1, x+1).
Is there a way to make MAPLE find this solution?
Thanks,
Stef.
|
| [MUG] Re: HOWTO solve system where solution is piecewise? |
|
Author: Maple User Group
Posted: Fri, 6 Dec 2002 18:04:53 -0500 (
|
>> From: Maple User Group "maple_gr"
-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-
From: "Ivan Huerta" "ihuerta"
To: "maple-list"
Subject: HOWTO solve system where solution is piecewise?
Date: Wed, 4 Dec 2002 18:00:08 -0400
Hi:
The following may be of some help....
> sol:=dsolve( {diff(y(t),t) = 1+ A*Dirac(t-a), y(0)=0}, y(t));
sol := y(t) = A Heaviside(t - a) + t - A Heaviside(-a)
> Ysol:= unapply(subs(sol,y(t)),t);
Ysol := t -> A Heaviside(t - a) + t - A Heaviside(-a)
> A:=solve( Ysol(4)=5,A);
1
A := - ---------------------------------
-Heaviside(4 - a) + Heaviside(-a)
> Ysol(t);
Heaviside(t - a) Heaviside(-a)
- --------------------------------- + t
+ ---------------------------------
-Heaviside(4 - a) + Heaviside(-a) -Heaviside(4 - a) +
Heaviside(-a)
Any value of a, with 0 < a < 4 works. The solution you provide is obtained
by setting
> a:=1;
a := 1
> Ysol(t);
Heaviside(t - 1) + t
Regards,
Prof. Ivan Huerta
Facultad de Matematicas
Pontificia Universidad Catolica de Chile
-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-
Date: Thu, 05 Dec 2002 18:31:11 +0000
Subject: HOWTO solve system where solution is piecewise?
To: "maple-list"
From: John Trapp "j.j.trapp"
The question is not properly posed.
A solution to this problem is: piecewise(x<a,x,x>=a, x+1) where a is in
]0,4[
Or can one have a solution of the form: piecewise(x<a,x,a<=x<b, x+0.5,
b<=x, x+1)
John
|
Previous by date: [MUG] Re: graphing parametric equations in 3d, Kamminga
Next by date: [MUG] Re: same function with different arrangement give different
plots?, Koch-Beuttenmueller
Previous thread: [MUG] convolution operator, MTK-Adem Kilicman Dr
Next thread: [MUG] same function with different arrangement give different plots?, Xiaoyan Li
|
|
|