avoid double function evaluation on '+' special file
[email protected] Sun, 21 Apr 2024 15:30:00 +0200
| Newsgroups | gmane.comp.graphics.gnuplot.user |
|---|---|
| Message-ID | <[email protected]> |
Dear Gnuplot Users, suppose the following simple gnuplot example snippet which is used to plot a complex valued function: w = 5 r = 3 f(t) = r * exp(I * w * t) plot sample [t=0:1] '+' u (real(f(t))):(imag(f(t))) w l here the function f(t) is evaluated twice - not desirable because of performance. How can this be done with only one evaluation of f(t)? Thanks for any advice and best regards Torsten -- ------------------------------------------------------------------------ Torsten Finke [email protected] ------------------------------------------------------------------------ _______________________________________________ gnuplot-info mailing list [email protected] Membership management via: https://lists.sourceforge.net/lists/listinfo/gnuplot-info