Re: ping Purl Gurl? (was Re: Interesting math)
- From: Purl Gurl <purlgurl@xxxxxxxxxxxx>
- Date: Fri, 13 Jul 2007 23:15:30 -0700
blmblm wrote:
Purl Gurl wrote:blmblm wrote:Purl Gurl wrote:
I think you may be surprised by the results of adding "1.00e+1"
to your array of test data. (I was -- it seems inconsistent
with results for "1.00" and "1.01e+1".)
1.00e+1
Exception 4: Not A Number
You need to review rules for writing scientific notation.
Ah, so you really are trying to match something that fits
a semi-strict definition of "scientific notation" -- I foolishly assumed you were after something that met typical
programming-language definitions of a number in the form of a
"decimal number" followed something indicating multiplication
by a power of 10. Well, all right.
A decimal number followed by multiplication is not a number.
This is a mathematical formula. This is notation, not a number.
Googling for definitions of "scientific notation", however,
I find what seems to be several conventions. The first hit:
doesn't strike me as being very precise -- it's not clear
from the definition(s) or the examples whether "1e+1" should
be acceptable (your code says it's not).
Maybe it would be simplest if you could just point me to a
definition you consider authoritative.
I am the ultimate authority on this, right after Prei Jai,
Jitze and Skit, of course.
For scientific notation, a base number cannot contain a
trailing zero. A base number must have a value which falls
between one and ten, not inclusive, "between" one and ten.
More than one, less than ten. Some claim a value of one is
allowed, but this is nonsense.
There can be no trailing zero or zeroes for scientific notation
for a base number, not the exponent.
If we get this straightened out, maybe we can move on to
something that will help me understand what you mean by
"C Float Number" (I was rather surprised that "12.0e+1"
was identified as such, despite having fewer than six
significant figures).
Simple logic, my dear troll. What is the maximum length
of number a calculator or software will report? This is,
almost all calculators and software, not big fancy ENIAC
machines which Skit services and maintains.
Prei Jei expertly explains, very recent, there is a limit
for the number of digits which can be returned, before
software will switch over to scientific notation; 2^63
Old fashion simple logic and good common sense, informs
a programmer if a number in data arrives in scientific
notation, this number will have six or more digits, more
realistic, will have a lot of digits as Prei Jei explains
and Skit explains, along with Jitze tossing in his plug
nickel's worth. Software nor mathematicians write in
scientific notation unless the number of digits is a lot.
My software expects a scientific notation number to be
a minimum length as set by a number of 2^63 minimum
value. Common sense is when a scientific notation
number is detected, this number qualifies as a
C Float Number; this number is assumed to be long.
You are playing a game of, "What will break Purl Gurl's
code, even if I have to cheat?"
This is what I label a "what if" troll game. Mind you,
I am not calling you troll directly, just as your constant
references to me as trolling is not name calling.
These numbers in scientific notation you present, are
all messed up. Learned mathematicians do not write a
value of one or ten or even one-hundred in scientific
notation. Your numbers are messed up and you are cheating.
My software performs perfectly. Your 1.00e+10 is rejected
as not a number, and this is not a number. The other examples
are correctly reported, including C Float because my software
is not programmed to expect lame brain messed up wrong format
scientific notation written by hand with intent to break my
code even if cheating is required.
You do not know how to correctly write scientific notation
and those numbers you write are not numbers. You are, with
intent, violating mathematical conventions.
You get on my case for playfully violating conventions to
create interesting discussion of our magical number, zero.
Then you turn right around and violate conventions to break
my Perl code, with intent to degrade my Perl skills, which
are very significant. I am an excellent Perl programmer.
However, you are not trolling nor a troll, per your standards.
I must leave. There is a baby raccoon swimming in our toilet
and I wish to photograph this playful darling critter.
--
Purl Gurl
--
So many are stumped by what slips right off the top of my mind
like a man's bad fitting hairpiece.
.
- Follow-Ups:
- Re: ping Purl Gurl? (was Re: Interesting math)
- From: blmblm
- Re: ping Purl Gurl? (was Re: Interesting math)
- References:
- Interesting math
- From: Skitt
- Re: Interesting math
- From: Purl Gurl
- ping Purl Gurl? (was Re: Interesting math)
- From: blmblm
- Re: ping Purl Gurl? (was Re: Interesting math)
- From: Purl Gurl
- Re: ping Purl Gurl? (was Re: Interesting math)
- From: blmblm
- Interesting math
- Prev by Date: Re: English by committee (of monkeys)
- Next by Date: Re: Cherries
- Previous by thread: Re: ping Purl Gurl? (was Re: Interesting math)
- Next by thread: Re: ping Purl Gurl? (was Re: Interesting math)
- Index(es):
Relevant Pages
|