MathGroup Archive 2005

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Avoiding usage of function brackets

  • To: mathgroup at smc.vnet.net
  • Subject: [mg62629] Re: Avoiding usage of function brackets
  • From: "Jens-Peer Kuska" <kuska at informatik.uni-leipzig.de>
  • Date: Tue, 29 Nov 2005 06:59:21 -0500 (EST)
  • Organization: Uni Leipzig
  • References: <dmh9to$92g$1@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

Hi,

Constant {om = 3, a = 5, b = 1 };
NDSolve[ {y'' == - om^2 * y , y'[0] == a, y[0] == 
b} /. {y[n_] :> y[n],
y -> y[t], Derivative[seq__][y][n_] :> 
Derivative[seq][y][n],
Derivative[seq__][y] :> Derivative[seq][y][t]}, y, 
{ t, 0, 2 Pi}]


Regards

  Jens

"Narasimham" <mathma18 at hotmail.com> schrieb im 
Newsbeitrag news:dmh9to$92g$1 at smc.vnet.net...
| (My earlier suggestion here). I wanted to avoid 
[t] in NDSolve as t is
| the one and only independent variable needing to 
be used in this
| particular case of ODE solving. Please indicate 
how  [t] may be
| appended to y, y', y''  to be  taken into effect 
for the usual
| implementation in the example. Code is not 
under-specified because
| symbol t is identified along with its range.When 
not declared as a
| constant, the unparanthesized dependent 
parameter y is clearly the
| dependant variable.
|
| Constant {om = 3, a = 5, b = 1 }
| NDSolve[ {y'' == - om^2 * y , y' == a, y == b}, 
y, { t, 0, 2 Pi}];
|
| TIA ,  Narasimham
| 



  • Prev by Date: Re: How to define and plot a periodic signal?
  • Next by Date: Re: Get numbers out of PhysicalConstants?
  • Previous by thread: Re: Re: Get numbers out of PhysicalConstants?
  • Next by thread: Avoiding usage of function brackets