Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2009

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

Search the Archive

Re: CForm of a synbolic expression

  • To: mathgroup at smc.vnet.net
  • Subject: [mg97594] Re: CForm of a synbolic expression
  • From: "Sjoerd C. de Vries" <sjoerd.c.devries at gmail.com>
  • Date: Mon, 16 Mar 2009 04:25:51 -0500 (EST)
  • References: <gpilao$58t$1@smc.vnet.net>

Looks OK to me. All * are there and since eta[m] is a Mathematica
function call format, a translation as eta(m) in C is OK as well, as
this is the way functions are called in C. Perhaps you meant to index
an array? In that case you should double brackets ==> eta[[m]], which
would become eta[m] in C.

Cheers -- Sjoerd

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.
>
> Thanks
>
> VV



  • Prev by Date: Different results with FourierTransform[]
  • Next by Date: Re: The "Go Back" Button doesn't work
  • Previous by thread: Re: CForm of a synbolic expression
  • Next by thread: Different results with FourierTransform[]