Skip to main content
edited tags
Link
added 64 characters in body
Source Link

Suppose I have a vector equation:

Y'[t]==rhs[Y[t]] 

and

Y[0]==ConstantArray[0,n]

where "rhs[Y[t]]" is a black box function which numerically calculates a N-length vector given a N-length vector Y[t].

How can I solve such an equation in "NDSolve" ?

Update: Say my rhs is :

rhs[{x_?NumberQ,y_?NumberQ]={x,y}

Suppose I have a vector equation:

Y'[t]==rhs[Y[t]] 

and

Y[0]==ConstantArray[0,n]

where "rhs[Y[t]]" is a black box function which numerically calculates a N-length vector given a N-length vector Y[t].

How can I solve such an equation in "NDSolve" ?

Suppose I have a vector equation:

Y'[t]==rhs[Y[t]] 

and

Y[0]==ConstantArray[0,n]

where "rhs[Y[t]]" is a black box function which numerically calculates a N-length vector given a N-length vector Y[t].

How can I solve such an equation in "NDSolve" ?

Update: Say my rhs is :

rhs[{x_?NumberQ,y_?NumberQ]={x,y}
deleted 16 characters in body
Source Link

Suppose I have a vector equation:

Y'[t]==rhs[Y[t]] 

and

Y[0]==ConstantArray[0,n]

where "rhs[Y[t]]" is a black box function which numerically calculates a N-length vector given calculates given a lenght a N-Nlength vector Y[t].

How can I solve such an equation in "NDSolve" ?

Suppose I have a vector equation:

Y'[t]==rhs[Y[t]] 

and

Y[0]==ConstantArray[0,n]

where "rhs[Y[t]]" is a black box function which numerically calculates a N-length vector given calculates given a lenght-N vector Y[t].

How can I solve such an equation in "NDSolve" ?

Suppose I have a vector equation:

Y'[t]==rhs[Y[t]] 

and

Y[0]==ConstantArray[0,n]

where "rhs[Y[t]]" is a black box function which numerically calculates a N-length vector given a N-length vector Y[t].

How can I solve such an equation in "NDSolve" ?

Source Link
Loading