Re: CForm of a synbolic expression
- To: mathgroup at smc.vnet.net
- Subject: [mg97589] Re: CForm of a synbolic expression
- From: Szabolcs <szhorvat at gmail.com>
- Date: Mon, 16 Mar 2009 04:24:55 -0500 (EST)
- References: <gpilao$58t$1@smc.vnet.net>
On Mar 15, 12:29 pm, Volkan <visb... at gmail.com> wrote:
> Hello,
>
> I need help about C form of the expression of this
>
> Sum[eta[m][l][k]*C[m][l][k][p][r][s]*
> gamman[t][r][
> s]*(dPHI[p][L]*Chiinv[L][t] - (Chi[p][L] - Chin[p][L])*
> PHIinv[L][n]*dPHI[n][T]*PHIinv[T][t]), {m, 1, 2}, {l, 1, 2}, {=
k,
> 1, 2}, {p, 1, 2}, {r, 1, 2}, {s, 1, 2}, {L, 1, 2}, {n, 1, 2}, {T, 1,
> 2}, {t, 1, 2}]
>
> when I type CForm[%] what it gives is totally not in C form. It
> changes [][] to ()() and multiplication sign disappears. Is there
> someone can help me about it.
>
That's because Mathematica uses [] for function calls. Also, C is a
built-in symbol, so don't use it.