MathGroup Archive 2003

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

Search the Archive

Re: How to copy pattern from one expression to another?

  • To: mathgroup at smc.vnet.net
  • Subject: [mg45328] Re: How to copy pattern from one expression to another?
  • From: "Nico" <pipponep at hotmail.com>
  • Date: Tue, 30 Dec 2003 04:14:34 -0500 (EST)
  • Organization: [Infostrada]
  • References: <bsbn05$lri$1@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

Thanks you all for your replies.
Indeed, what you suggested only solves my partially my issue. I guess I
should get deeped into the problem...
Each xi I wrote in the previous messages represents of couple of (x,y)
coordinates in the form {{a1,y1},{a2,y2}} which represents the points to
which I have to apply function Fit[].

I.e. xx={{x11,x12,x13},x2,x3,x4,{x51,x52},x6,{x71,x72},x8}=
{...,{{a61,y61},{a62,y62}},...}

Now, if I set Fit[] to Listable, then I would get

Fit[xx,{1,x},x]={...,{{Fit[a61,{1,x},x],Fit[y61,{1,x},x]},{Fit[a62,{1,x},x],
Fit[y62,{1,x},x]}},...}

which obviously something meaningless.
I would therefore need something that "flattens" xx down to a list so that
only tokens like {{a1,y1},{a2,y2}} appear. I would then apply Fit[] in the
correct way, and then I would like to construct a list with the same pattern
that xx had...
Is it confusing? It is to me...

Please, let me know if you need further explanations. Thanks you all for
your help!
Nicola


  • Prev by Date: Re: How to copy pattern from one expression to another?
  • Next by Date: Re: colorfunction with scatterplot3d?
  • Previous by thread: Re: How to copy pattern from one expression to another?
  • Next by thread: Re: How to copy pattern from one expression to another?