Re: avoid double function evaluation on '+' special

Marc Chantreux <[email protected]> Mon, 22 Apr 2024 09:26:23 +0200
Newsgroups gmane.comp.graphics.gnuplot.user
Message-ID <ZiYRH-bkdRjdzdYX@prometheus>
On Sun, Apr 21, 2024 at 11:54:42AM -0700, Ethan Merritt wrote:
>     plot sample [t=0:1] '+' u (temp=f(t),real(temp)):(imag(temp)) w l

aside: it is common in other langages that unfinished expressions allows
line returns. it would be nice to have it in gnuplot so we can write

	w=5; r=3
	f(t) = r * exp(I * w * t)
	plot sample [t=0:1] '+' u (
		temp=f(t),
		real(temp)):(imag(temp)
	) w l

regards

-- 
Marc Chantreux
Pôle CESAR (Calcul et services avancés à la recherche)
Université de Strasbourg
14 rue René Descartes,
BP 80010, 67084 STRASBOURG CEDEX
03.68.85.60.79



_______________________________________________
gnuplot-info mailing list
[email protected]
Membership management via: https://lists.sourceforge.net/lists/listinfo/gnuplot-info