|
From: Patrick D. <pd...@gm...> - 2018-02-23 17:12:58
|
thank you very much =========================================================================== Patrick DUPRÉ | | email: pd...@gm... Laboratoire de Physico-Chimie de l'Atmosphère | | Université du Littoral-Côte d'Opale | | Tel. (33)-(0)3 28 23 76 12 | | Fax: 03 28 65 82 44 189A, avenue Maurice Schumann | | 59140 Dunkerque, France =========================================================================== > Sent: Friday, February 23, 2018 at 6:08 PM > From: "ivana richterova" <iva...@mf...> > To: "Patrick Dupre" <pd...@gm...> > Cc: gnuplot <gnu...@li...> > Subject: Re: [Gnuplot-info] variable in function > > Hi Patrick, > > you can write e.g., > # F1(x)=(myvar=f2(x), myvar*myvar) > or > # F1(x)=((myvar=f2(x))*myvar) > > be careful about inside functions variables. As far as I know, they > are not local. > > good luck > > Iva > > > On 23/02/2018, Patrick Dupre <pd...@gm...> wrote: > > Hello, > > > > Could you help in doing this: > > > > F1 (x) is a function > > > > F1(x) = f2 (x) * f2 (x) > > > > f2 (x) is another function. > > > > I would like to store f2(x) (inside F1 (x)), to avoid to call f2 (x) twice. > > > > How can I do it? > > > > Thank. > > > > =========================================================================== > > Patrick DUPRÉ | | email: pd...@gm... > > Laboratoire de Physico-Chimie de l'Atmosphère | | > > Université du Littoral-Côte d'Opale | | > > Tel. (33)-(0)3 28 23 76 12 | | Fax: 03 28 65 82 44 > > 189A, avenue Maurice Schumann | | 59140 Dunkerque, France > > =========================================================================== > > > > ------------------------------------------------------------------------------ > > Check out the vibrant tech community on one of the world's most > > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > > _______________________________________________ > > gnuplot-info mailing list > > gnu...@li... > > Membership management via: > > https://lists.sourceforge.net/lists/listinfo/gnuplot-info > > > |