Re: Testing gnuplot with libcerf
On 11/06/2018 12:17 AM, Samuel Sieb wrote: Most languages have a math library containing a pi constant that is as precise as the computer can store. How is using a trig function going to be more accurate? This was from back in the early 1980s, when languages didn't have those constants built in. ___ users mailing list -- users@lists.fedoraproject.org To unsubscribe send an email to users-le...@lists.fedoraproject.org Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org
Re: Testing gnuplot with libcerf
On 11/5/18 9:07 PM, Joe Zeff wrote: On 11/05/2018 09:44 PM, Patrick Dupre wrote: pi = 4 arctan (1) if you need Excellent! That was exactly what I was going to suggest. Decades ago, the late Dan Alderson (The man who wrote JPL's main space probe navigation package.) told me that you should always use that because it gave you a value as precise as the computer could store. Even now, I'd bet, most programmers don't understand that. Most languages have a math library containing a pi constant that is as precise as the computer can store. How is using a trig function going to be more accurate? ___ users mailing list -- users@lists.fedoraproject.org To unsubscribe send an email to users-le...@lists.fedoraproject.org Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org
Re: Testing gnuplot with libcerf
On 11/05/2018 09:44 PM, Patrick Dupre wrote: pi = 4 arctan (1) if you need Excellent! That was exactly what I was going to suggest. Decades ago, the late Dan Alderson (The man who wrote JPL's main space probe navigation package.) told me that you should always use that because it gave you a value as precise as the computer could store. Even now, I'd bet, most programmers don't understand that. ___ users mailing list -- users@lists.fedoraproject.org To unsubscribe send an email to users-le...@lists.fedoraproject.org Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org
Re: Testing gnuplot with libcerf
> > On 11/05/2018 07:49 PM, Patrick Dupre wrote: > > I am sorry for the confusion. > > I use gnuplot > > I don't, so I presume that pi is predefined. Yes, pi = 4 arctan (1) if you need > ___ > users mailing list -- users@lists.fedoraproject.org > To unsubscribe send an email to users-le...@lists.fedoraproject.org > Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html > List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines > List Archives: > https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org > ___ users mailing list -- users@lists.fedoraproject.org To unsubscribe send an email to users-le...@lists.fedoraproject.org Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org
Re: Testing gnuplot with libcerf
On 11/05/2018 07:49 PM, Patrick Dupre wrote: I am sorry for the confusion. I use gnuplot I don't, so I presume that pi is predefined. ___ users mailing list -- users@lists.fedoraproject.org To unsubscribe send an email to users-le...@lists.fedoraproject.org Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org
Re: Testing gnuplot with libcerf
> On 11/05/2018 06:31 PM, Patrick Dupre wrote: > >> > >> On 11/05/2018 05:32 PM, Patrick Dupre wrote: > >>> sqrt_pi = sqrt (pi) > >>> > >>> z (x, y) = x + I * y > >>> w (z) = faddeeva (z) / sqrt_pi # Normalized > >>> plot real (w (z (x, 1)) > >>> > >>> > >>> Good luck. > >> > >> How do you initialize pi? > >> ___ > > I do not have. > > > > I={0,1} > > sqrt_pi = sqrt (pi) > > z (x, y) = x + I * y > > w (z) = faddeeva (z) / sqrt_pi # Normalized > > plot real (w (z (x, 1))) > > > > > > works like a charm. > > > OK, let's try again. Does the language you're using have pi as a built > in constant, or do you have to define a variable and give it a value? > In the latter case, what value do you give it? It's more than idle > curiosity, as some ways to give it a value are more precise than others. I am sorry for the confusion. I use gnuplot ___ users mailing list -- users@lists.fedoraproject.org To unsubscribe send an email to users-le...@lists.fedoraproject.org Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org
Re: Testing gnuplot with libcerf
On 11/05/2018 06:31 PM, Patrick Dupre wrote: On 11/05/2018 05:32 PM, Patrick Dupre wrote: sqrt_pi = sqrt (pi) z (x, y) = x + I * y w (z) = faddeeva (z) / sqrt_pi # Normalized plot real (w (z (x, 1)) Good luck. How do you initialize pi? ___ I do not have. I={0,1} sqrt_pi = sqrt (pi) z (x, y) = x + I * y w (z) = faddeeva (z) / sqrt_pi # Normalized plot real (w (z (x, 1))) works like a charm. OK, let's try again. Does the language you're using have pi as a built in constant, or do you have to define a variable and give it a value? In the latter case, what value do you give it? It's more than idle curiosity, as some ways to give it a value are more precise than others. ___ users mailing list -- users@lists.fedoraproject.org To unsubscribe send an email to users-le...@lists.fedoraproject.org Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org
Re: Testing gnuplot with libcerf
> > On 11/05/2018 05:32 PM, Patrick Dupre wrote: > > sqrt_pi = sqrt (pi) > > > > z (x, y) = x + I * y > > w (z) = faddeeva (z) / sqrt_pi # Normalized > > plot real (w (z (x, 1)) > > > > > > Good luck. > > How do you initialize pi? > ___ I do not have. I={0,1} sqrt_pi = sqrt (pi) z (x, y) = x + I * y w (z) = faddeeva (z) / sqrt_pi # Normalized plot real (w (z (x, 1))) works like a charm. ___ users mailing list -- users@lists.fedoraproject.org To unsubscribe send an email to users-le...@lists.fedoraproject.org Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org
Re: Testing gnuplot with libcerf
On 11/05/2018 05:32 PM, Patrick Dupre wrote: sqrt_pi = sqrt (pi) z (x, y) = x + I * y w (z) = faddeeva (z) / sqrt_pi # Normalized plot real (w (z (x, 1)) Good luck. How do you initialize pi? ___ users mailing list -- users@lists.fedoraproject.org To unsubscribe send an email to users-le...@lists.fedoraproject.org Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org
Re: Testing gnuplot with libcerf
Hello Ronaldo Part of my code I={0,1} sqrt_pi = sqrt (pi) z (x, y) = x + I * y w (z) = faddeeva (z) / sqrt_pi # Normalized plot real (w (z (x, 1)) Good luck. === Patrick DUPRÉ | | email: pdu...@gmx.com 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: Monday, November 05, 2018 at 9:12 PM > From: "Ronaldo Mercado" > To: "Community support for Fedora users" > Subject: Testing gnuplot with libcerf > > Hi, > > I would like to test an update to gnuplot from bugzilla #1476616. > https://bugzilla.redhat.com/show_bug.cgi?id=1476616 > > I am using fedora 28 and I managed to install the package okay from copr > I don't know my way around gnuplot. I tried the simple plot from > http://gnuplot.sourceforge.net/demo/simple.html > > Do you have an example plot that uses the libcerf functions? > > Thanks. > > Ronaldo > ___ > users mailing list -- users@lists.fedoraproject.org > To unsubscribe send an email to users-le...@lists.fedoraproject.org > Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html > List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines > List Archives: > https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org > ___ users mailing list -- users@lists.fedoraproject.org To unsubscribe send an email to users-le...@lists.fedoraproject.org Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org
Re: Testing gnuplot with libcerf
On Mon, 5 Nov 2018 at 17:03, Ronaldo Mercado wrote: > Hi, > > I would like to test an update to gnuplot from bugzilla #1476616. > https://bugzilla.redhat.com/show_bug.cgi?id=1476616 > > I am using fedora 28 and I managed to install the package okay from copr > I don't know my way around gnuplot. I tried the simple plot from > http://gnuplot.sourceforge.net/demo/simple.html > Do you have an example plot that uses the libcerf functions? > > If you have gnuplot installed with libcerf enabled, you should have "cerf.dem", see: http://gnuplot.sourceforge.net/demo/cerf.html -- George N. White III ___ users mailing list -- users@lists.fedoraproject.org To unsubscribe send an email to users-le...@lists.fedoraproject.org Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org
Testing gnuplot with libcerf
Hi, I would like to test an update to gnuplot from bugzilla #1476616. https://bugzilla.redhat.com/show_bug.cgi?id=1476616 I am using fedora 28 and I managed to install the package okay from copr I don't know my way around gnuplot. I tried the simple plot from http://gnuplot.sourceforge.net/demo/simple.html Do you have an example plot that uses the libcerf functions? Thanks. Ronaldo ___ users mailing list -- users@lists.fedoraproject.org To unsubscribe send an email to users-le...@lists.fedoraproject.org Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org