<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	
	>
<channel>
	<title>
	Comments on: Easy calculator tip	</title>
	<atom:link href="https://www.dragonflydigest.com/2006/12/10/easy-calculator-tip/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.dragonflydigest.com/2006/12/10/easy-calculator-tip/</link>
	<description>A running description of activity related to DragonFly BSD.</description>
	<lastBuildDate>Fri, 15 Dec 2006 01:40:59 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.0</generator>
	<item>
		<title>
		By: Joe "Floid" Kanowitz		</title>
		<link>https://www.dragonflydigest.com/2006/12/10/easy-calculator-tip/comment-page-1/#comment-3806</link>

		<dc:creator><![CDATA[Joe "Floid" Kanowitz]]></dc:creator>
		<pubDate>Fri, 15 Dec 2006 01:40:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.shiningsilence.com/dbsdlog/index.php/2006/12/10/2012.html#comment-3806</guid>

					<description><![CDATA[Also, this blog really needs a &#039;Warning: Are you *sure* you want to post with emoticons?&#039; confirmation. : &#124;]]></description>
			<content:encoded><![CDATA[<p>Also, this blog really needs a &#8216;Warning: Are you *sure* you want to post with emoticons?&#8217; confirmation. : |</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Joe "Floid" Kanowitz		</title>
		<link>https://www.dragonflydigest.com/2006/12/10/easy-calculator-tip/comment-page-1/#comment-3805</link>

		<dc:creator><![CDATA[Joe "Floid" Kanowitz]]></dc:creator>
		<pubDate>Fri, 15 Dec 2006 01:40:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.shiningsilence.com/dbsdlog/index.php/2006/12/10/2012.html#comment-3805</guid>

					<description><![CDATA[bc actually has functions and arrays, though per the manual page for the GNU/FSF version I have in front of me on this Ubuntu box, the POSIX definitions for the latter are quite possibly borked.

You&#039;ve also forced me to discover that said GNU bc also includes the &#039;last&#039; variable, and that &#039;.&#039; is apparently an earlier non-POSIXified shorthand for same.  (Both work in a plain bc -l session here.)  I still wish it would recognize an infix-type operator and just prepend the last value automatically, but this is a lot better than nothing. :)]]></description>
			<content:encoded><![CDATA[<p>bc actually has functions and arrays, though per the manual page for the GNU/FSF version I have in front of me on this Ubuntu box, the POSIX definitions for the latter are quite possibly borked.</p>
<p>You&#8217;ve also forced me to discover that said GNU bc also includes the &#8216;last&#8217; variable, and that &#8216;.&#8217; is apparently an earlier non-POSIXified shorthand for same.  (Both work in a plain bc -l session here.)  I still wish it would recognize an infix-type operator and just prepend the last value automatically, but this is a lot better than nothing. :)</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Tom		</title>
		<link>https://www.dragonflydigest.com/2006/12/10/easy-calculator-tip/comment-page-1/#comment-3764</link>

		<dc:creator><![CDATA[Tom]]></dc:creator>
		<pubDate>Tue, 12 Dec 2006 23:36:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.shiningsilence.com/dbsdlog/index.php/2006/12/10/2012.html#comment-3764</guid>

					<description><![CDATA[Python actually makes a remarkably good calculator. Fire it up in interactive mode, and it evaluates any expression you type at the prompt. Since standard arithmetic expressions are valid python expressions, you&#039;re away; python has bigints, so there&#039;s no overflow to worry about, and complex numbers right in the language (spelled &quot;1+2j&quot;). One thing it lacks is an infinite-precision floating-point type in the base language (it uses normal 64-bit floats), but there is a &#039;decimal&#039; module which does what you want. Oh, and you have to import the math module to get the standard maths functions (sin and cos and all that - although you can do powers, including roots, directly, with the ** operator). Plus, this being a programming language, you can assign to and use variables, define functions, work with arrays and sets, etc. Much better than bc, IMNERHO.

Top tip: in interactive mode, the character _ means &#039;the value of the last expression evaluated&#039;, which is really handy for doing calculatorish things, for instance keeping a running total.

-- tom]]></description>
			<content:encoded><![CDATA[<p>Python actually makes a remarkably good calculator. Fire it up in interactive mode, and it evaluates any expression you type at the prompt. Since standard arithmetic expressions are valid python expressions, you&#8217;re away; python has bigints, so there&#8217;s no overflow to worry about, and complex numbers right in the language (spelled &#8220;1+2j&#8221;). One thing it lacks is an infinite-precision floating-point type in the base language (it uses normal 64-bit floats), but there is a &#8216;decimal&#8217; module which does what you want. Oh, and you have to import the math module to get the standard maths functions (sin and cos and all that &#8211; although you can do powers, including roots, directly, with the ** operator). Plus, this being a programming language, you can assign to and use variables, define functions, work with arrays and sets, etc. Much better than bc, IMNERHO.</p>
<p>Top tip: in interactive mode, the character _ means &#8216;the value of the last expression evaluated&#8217;, which is really handy for doing calculatorish things, for instance keeping a running total.</p>
<p>&#8212; tom</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
