|
From: Thomas S. <t.s...@fz...> - 2010-02-09 19:51:11
|
this has been repaired in the development version of gnuplot:
G N U P L O T
Version 4.2 patchlevel 6
gnuplot> print 6000**4
-2086600704
G N U P L O T
Version 4.4 patchlevel 0-rc1
gnuplot> print 6000**4
-2086600704
G N U P L O T
Version 4.5 patchlevel 0
gnuplot> print 6000**4
1.296e+15
Daniel Farrell wrote:
>
> Hi folks,
>
> I just tried plotting this equation,
>
> T0 = 300
> T1 = 6000
> set xrange [T0:T1]
> f(x) = (1 - x**4/T1**4) * (1 - T0/x)
>
> Which should have two zeros at (x=300 and x=6000). It seems that because
> the numbers have been defined as integers it give the wrong result.
> Redefining,
>
> T0 = 300.
> T1 = 6000.
>
> plots the correct function.
>
> Is there a case for converting ints to floats as standard in the gnuplot
> interpreter? When using gnuplot as a user, I would expect the maths to
> just work without having to think about programming details like ints of
> floats. In a programming environment of course this is what I would
> expected.
>
> Cheers,
>
> Dan
>
>
>
> ------------------------------------------------------------------------------
> The Planet: dedicated and managed hosting, cloud storage, colocation
> Stay online with enterprise data centers and the best network in the
> business
> Choose flexible plans and management services without long-term contracts
> Personal 24x7 support from experience hosting pros just a phone call away.
> http://p.sf.net/sfu/theplanet-com
> _______________________________________________
> gnuplot-beta mailing list
> gnu...@li...
> https://lists.sourceforge.net/lists/listinfo/gnuplot-beta
>
>
--
View this message in context: http://old.nabble.com/Parsing-bug--tp27514663p27521028.html
Sent from the Gnuplot - Dev mailing list archive at Nabble.com.
|