Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #11328 > unrolled thread
| Started by | design <design@rcn.com> |
|---|---|
| First post | 2012-08-14 08:23 +0000 |
| Last post | 2012-08-17 07:45 +0000 |
| Articles | 4 — 3 participants |
Back to article view | Back to comp.soft-sys.math.mathematica
NDSolve curve - obtain single value from curve at t:=d design <design@rcn.com> - 2012-08-14 08:23 +0000
Re: NDSolve curve - obtain single value from curve at t:=d "Kevin J. McCann" <kjm@KevinMcCann.com> - 2012-08-15 07:31 +0000
Re: NDSolve curve - obtain single value from curve at t:=d Peter Pein <petsie@dordos.net> - 2012-08-15 07:34 +0000
Re: NDSolve curve - obtain single value from curve at t:=d design <design@rcn.com> - 2012-08-17 07:45 +0000
| From | design <design@rcn.com> |
|---|---|
| Date | 2012-08-14 08:23 +0000 |
| Subject | NDSolve curve - obtain single value from curve at t:=d |
| Message-ID | <k0d1ta$m0c$1@smc.vnet.net> |
Customized annuity applet;
I need to find the value of sol1 at t = d;
d, age, remaining life, fundrate, (and others) are all sliders;
Overall apples is working well
d = age + remainingLife;
eqn1 = y'[t] == fundRate/100*y[t] - annuityAmt;=E2=80=A8sol1 = y[t]/. NDSolve[{eqn1, y[age] == startValue}, y[t], {t, age, 110}];
I have tried the sol1 iteration with {d,d,110} and many other approaches to no avail.
Suggestions appreciated!!
[toc] | [next] | [standalone]
| From | "Kevin J. McCann" <kjm@KevinMcCann.com> |
|---|---|
| Date | 2012-08-15 07:31 +0000 |
| Message-ID | <k0fj8l$q64$1@smc.vnet.net> |
| In reply to | #11328 |
You did not give any of the constants, but this should get you started.
d = age + remainingLife;
age = 32.0;
annuityAmt = 100000.0;
startValue = 100000.0;
fundRate = 0.05;
eqn1 = y'[t] == fundRate/100*y[t] - annuityAmt;
Y[t_] = y[t] /.
NDSolve[{eqn1, y[age] == startValue}, y[t], {t, age, 110}][[1]]
Plot[Y[t], {t, 32, 110}]
Kevin
On 8/14/2012 4:23 AM, design wrote:
> Customized annuity applet;
> I need to find the value of sol1 at t = d;
> d, age, remaining life, fundrate, (and others) are all sliders;
> Overall apples is working well
>
> d = age + remainingLife;
> eqn1 = y'[t] == fundRate/100*y[t] - annuityAmt;=E2=80=A8sol1 = y[t]/. NDSolve[{eqn1, y[age] == startValue}, y[t], {t, age, 110}];
>
> I have tried the sol1 iteration with {d,d,110} and many other approaches to no avail.
>
> Suggestions appreciated!!
>
[toc] | [prev] | [next] | [standalone]
| From | Peter Pein <petsie@dordos.net> |
|---|---|
| Date | 2012-08-15 07:34 +0000 |
| Message-ID | <k0fjee$q8q$1@smc.vnet.net> |
| In reply to | #11328 |
Am 14.08.2012 10:23, schrieb design:
> Customized annuity applet;
> I need to find the value of sol1 at t = d;
> d, age, remaining life, fundrate, (and others) are all sliders;
> Overall apples is working well
>
> d = age + remainingLife;
> eqn1 = y'[t] == fundRate/100*y[t] - annuityAmt;=E2=80=A8sol1 = y[t]/. NDSolve[{eqn1, y[age] == startValue}, y[t], {t, age, 110}];
>
> I have tried the sol1 iteration with {d,d,110} and many other approaches to no avail.
>
> Suggestions appreciated!!
>
Hi,
DSolve[{y'[t] == fundRate/100*y[t] - annuityAmt,
y[age] == startValue}, y[t], t]
--> {{y[t] -> (1/fundRate)
E^(-((age fundRate)/
100)) (100 annuityAmt E^((age fundRate)/100) -
100 annuityAmt E^((fundRate t)/100) +
E^((fundRate t)/100) fundRate startValue)}}
doesn't help?
In simple cases, try the exact solution. Even if the calculation needs a
while (not for this differential equation), it's worth it.
Peter
[toc] | [prev] | [next] | [standalone]
| From | design <design@rcn.com> |
|---|---|
| Date | 2012-08-17 07:45 +0000 |
| Message-ID | <k0ksqb$67a$1@smc.vnet.net> |
| In reply to | #11359 |
Peter
Thank you. I'm fascinated with the approach but still trying to integrate it into the app.
Joe
On Wednesday, August 15, 2012 3:34:38 AM UTC-4, Peter Pein wrote:
> Am 14.08.2012 10:23, schrieb design:
>
> > Customized annuity applet;
>
> > I need to find the value of sol1 at t = d;
>
> > d, age, remaining life, fundrate, (and others) are all sliders;
>
> > Overall apples is working well
>
> >
>
> > d = age + remainingLife;
>
> > eqn1 = y'[t] == fundRate/100*y[t] - annuityAmt;=E2=80=A8sol1 = y[t]/. NDSolve[{eqn1, y[age] == startValue}, y[t], {t, age, 110}];
>
> >
>
> > I have tried the sol1 iteration with {d,d,110} and many other approaches to no avail.
>
> >
>
> > Suggestions appreciated!!
>
> >
>
> Hi,
>
>
>
> DSolve[{y'[t] == fundRate/100*y[t] - annuityAmt,
>
> y[age] == startValue}, y[t], t]
>
>
>
> --> {{y[t] -> (1/fundRate)
>
> E^(-((age fundRate)/
>
> 100)) (100 annuityAmt E^((age fundRate)/100) -
>
> 100 annuityAmt E^((fundRate t)/100) +
>
> E^((fundRate t)/100) fundRate startValue)}}
>
>
>
> doesn't help?
>
>
>
> In simple cases, try the exact solution. Even if the calculation needs a
>
> while (not for this differential equation), it's worth it.
>
>
>
> Peter
On Wednesday, August 15, 2012 3:34:38 AM UTC-4, Peter Pein wrote:
> Am 14.08.2012 10:23, schrieb design:
>
> > Customized annuity applet;
>
> > I need to find the value of sol1 at t = d;
>
> > d, age, remaining life, fundrate, (and others) are all sliders;
>
> > Overall apples is working well
>
> >
>
> > d = age + remainingLife;
>
> > eqn1 = y'[t] == fundRate/100*y[t] - annuityAmt;=E2=80=A8sol1 = y[t]/. NDSolve[{eqn1, y[age] == startValue}, y[t], {t, age, 110}];
>
> >
>
> > I have tried the sol1 iteration with {d,d,110} and many other approaches to no avail.
>
> >
>
> > Suggestions appreciated!!
>
> >
>
> Hi,
>
>
>
> DSolve[{y'[t] == fundRate/100*y[t] - annuityAmt,
>
> y[age] == startValue}, y[t], t]
>
>
>
> --> {{y[t] -> (1/fundRate)
>
> E^(-((age fundRate)/
>
> 100)) (100 annuityAmt E^((age fundRate)/100) -
>
> 100 annuityAmt E^((fundRate t)/100) +
>
> E^((fundRate t)/100) fundRate startValue)}}
>
>
>
> doesn't help?
>
>
>
> In simple cases, try the exact solution. Even if the calculation needs a
>
> while (not for this differential equation), it's worth it.
>
>
>
> Peter
On Wednesday, August 15, 2012 3:34:38 AM UTC-4, Peter Pein wrote:
> Am 14.08.2012 10:23, schrieb design:
>
> > Customized annuity applet;
>
> > I need to find the value of sol1 at t = d;
>
> > d, age, remaining life, fundrate, (and others) are all sliders;
>
> > Overall apples is working well
>
> >
>
> > d = age + remainingLife;
>
> > eqn1 = y'[t] == fundRate/100*y[t] - annuityAmt;=E2=80=A8sol1 = y[t]/. NDSolve[{eqn1, y[age] == startValue}, y[t], {t, age, 110}];
>
> >
>
> > I have tried the sol1 iteration with {d,d,110} and many other approaches to no avail.
>
> >
>
> > Suggestions appreciated!!
>
> >
>
> Hi,
>
>
>
> DSolve[{y'[t] == fundRate/100*y[t] - annuityAmt,
>
> y[age] == startValue}, y[t], t]
>
>
>
> --> {{y[t] -> (1/fundRate)
>
> E^(-((age fundRate)/
>
> 100)) (100 annuityAmt E^((age fundRate)/100) -
>
> 100 annuityAmt E^((fundRate t)/100) +
>
> E^((fundRate t)/100) fundRate startValue)}}
>
>
>
> doesn't help?
>
>
>
> In simple cases, try the exact solution. Even if the calculation needs a
>
> while (not for this differential equation), it's worth it.
>
>
>
> Peter
[toc] | [prev] | [standalone]
Back to top | Article view | comp.soft-sys.math.mathematica
csiph-web