Re: saving initialization cells as a .m file
- To: mathgroup at smc.vnet.net
- Subject: [mg99873] Re: saving initialization cells as a .m file
- From: "Sjoerd C. de Vries" <sjoerd.c.devries at gmail.com>
- Date: Mon, 18 May 2009 02:29:55 -0400 (EDT)
- References: <guj87p$hr4$1@smc.vnet.net> <gujfv3$ohh$1@smc.vnet.net>
Daniel,
>From the docs: x^\[Dagger] is by default interpreted as SuperDagger
[x].
Cheers -- Sjoerd
On May 15, 12:25 pm, dh <d... at metrohm.com> wrote:
> Hi Baris,
>
> f[t]^\[Dagger] does not apply SuperDagger.
>
> You would have to say SuperDagger[f[t]]
>
> Daniel
>
> Baris Altunkaynak wrote:
> > Hi,
>
> > I have the following code which runs fine in a notebook:
>
> > SuperDagger[A_List] := Conjugate[Transpose[A]]
> > eqn = {f'[t] == -f[t]^\[Dagger].f[t], f[0] == RandomReal[{0, =
0.1}, {3, 3}]};
> > NDSolve[eqn, f, {t, 0, 10}]
>
> > but when I save the first two lines (definition of SuperDagger and eqn)=
in a .m file and load them with a Get command, although Mathematica loads =
the definitions, NDSolve doesn't like the input and complains that derivati=
ve at t=0 is not defined. Weirdly if I copy and paste the output of NDSol=
ve and evaluate it, it runs fine. Do you know how can I fix this?
>
> > best regards,
>
> > Baris Altunkaynak