Re: Solution[[1,1,2]] Brackets

• To: mathgroup at smc.vnet.net
• Subject: [mg46300] Re: Solution[[1,1,2]] Brackets
• From: bobhanlon at aol.com (Bob Hanlon)
• Date: Fri, 13 Feb 2004 21:57:11 -0500 (EST)
• References: <c0hhi1\$let\$1@smc.vnet.net>
• Sender: owner-wri-mathgroup at wolfram.com

```\$Version

5.0 for Mac OS X (November 19, 2003)

The version that I am running fails to solve for solution without some help

soln = DSolve[{n'[t]==k*n[t]}, n[t],t][[1]]

{n[t] -> E^(k*t)*C[1]}

solution = soln /.Solve[(n[t] /.soln /. t->1) == 500, C[1]]

{{n[t] -> 500*E^(k*t - k)}}

solution[[1]]

{n[t] -> 500*E^(k*t - k)}

solution[[1,1]]

n[t] -> 500*E^(k*t - k)

solution[[1,1,2]]

500*E^(k*t - k)

population[t_] = solution[[1,1,2]];

Bob Hanlon

In article <c0hhi1\$let\$1 at smc.vnet.net>, "alan b" <alan4100 at comcast.net> wrote:

<< I have been trying to figure out what is inside the solution[1,1,2]. For the
problem below.

For example,
solution=DSolve[{n'[t]==kn[t], n[1]=500}, n[t],t]

population[t_]=solution[[1,1,2]]

I gather that the first item of the solution[[1,1,2]] is for the first and
only curly item:{n't[t]==kn[t],n[1]=500}.

I assume the second item of solution[[1,1,2] is the first subitem of the
first curly bracket. The third item of solution [[1,1,2]] which is two
suppose to be for 2nd item of the first curly brackets. But it appears to be
not.

Is there a way for me to see the contents visibly of the solution[[1,1,2]]
each item at a time.

```

• Prev by Date: Re: Solution[[1,1,2]] Brackets
• Next by Date: Re: How does one export a DXF file with PolygonsOnly set to true?
• Previous by thread: Re: Solution[[1,1,2]] Brackets
• Next by thread: Re: Maximum Problem