At 20:27 -0700 8/20/13, Jonathan Lang wrote: Off list accidentally I think.
Could you try to put commensurability into layman's terms? Preferably with a
focus on some of its less obvious advantages.
On Aug 20, 2013, at 8:19 PM, Doug McNutt dougl...@macnauchtan.com wrote:
At 11:41 -0400 8/20
At 11:41 -0400 8/20/13, yary wrote:
I'll bite... this concept of commensurablity is not one I grasp from
your email.
functions are (sugarably) degenerate (many to 1) relations and
procedures are (sugarably) degenerate (state-transition) functions.
Perl many other languages don't have a strong
At 16:58 -0800 11/18/10, Jon Lang wrote:
If this is implemented, Duration should be an alias for something to
the effect of Num but unitssecond. Otherwise, Instant and
Duration remain unchanged.
Thoughts?
http://www.physics.nist.gov/cuu/Units/index.html
with special attention to:
At 15:08 -0700 9/23/10, Darren Duncan wrote, and I snipped a bunch:
Larry's updating the Synopsis terminology to say sequence instead of
series for correctness led me to check out what seems to be a similar
problem, range.
Add to the list of meanings, in the world of computing, Microsoft
Since January 2009 I have accumulated over 1000 messages to groups, that
arrived with improper 0A (UNIX line ends without a preceding 0D) in the body of
the message. In order to reply to such a message I have to remove them manually
to avoid rejection by my SMTP server. It's a PITA.
I have
Please pardon intrusion by a novice who is anything but object oriented.
I consider myself a long time user of perl 5. I love it and it has completely
replaced FORTRAN as my compiler of choice. Programming Perl is so dog-eared
that I may need a replacement. I joined this list when I thought the
At 21:09 -0700 4/23/10, Darren Duncan wrote:
I think that the most thorough solution is to just take it for granted that
there are multiple reference timelines/calendars and that in general it is
impossible to reconcile them with each other.
At 15:46 -0700 4/24/10, Darren Duncan wrote:
All
${A-1} = 3.14159;
$A = $A-1;
$A = $A -1;
$A-=2;
$A = 123E-2;
$A = Pi();
$B = sin ($A-1);
$B = sin (${A}-1);
$B = sin($A -1);
-2**2 = -4 except when it comes out +4 as in MS Excel.
_2**2 = +4 in some other languages that use _ as a unary minus operator.
Will editors be bothered when I try to
At 10:25 +1300 3/17/10, Martin D Kealey wrote:
On Mon, 15 Mar 2010, Mark J. Reed wrote:
Anything that can be made into a list is discrete.
Not quite, since you can create lists whose members belong to
continuous sets, e.g. real numbers. Anything that naturally forms a
list, maybe.
A
At 18:14 -0800 3/14/10, Jon Lang wrote:
There are discrete things that are not ordered (such as gaussian
integers), and there are ordered things that are not discrete (such as
real numbers or strings).
The word discrete as in atoms are the discrete view of matter may turn out to
be confusing to
At 11:54 -0800 12/17/09, Jon Lang wrote:
And I think there's a Math error in the 4th line: you don't need the
components of a vector to do a dot product with that vector -- so it is just
my ($x, $y) = $vector «·« ( [1, 0], [0, 1] );
True enough.
Which makes me wonder if all of them are
At 00:15 +0100 12/17/09, Moritz Lenz wrote:
Not quite, .abs returns one of the polar coordinates (the magnitude), so
only a method is missing that returns the angle.
Any ideas for a good name?
In pre-computer times the angle was called the argument.
But that offers plenty of room for confusion
You folks should really consider the oyster as perl's mascot.
The mother of pearl relationship is too good to pass up and I'll bet
that someone will come up with a bi-valve operator soon.
--
-- A fair tax is one that you pay but I don't --
I don't know how relevant this is; but this sounds like the sort of
optimization that pure functional programming allows for - that is, if
the compiler ever sees a call like asin(sin($x)), it might optimize
the code by just putting $x in there directly, and bypassing both the
sin and asin calls -
At 13:58 -0500 2/25/09, Mark J. Reed wrote:
I do quite like the magical postfix %, but I wonder how far it should
go beyond ±:
$x += 5%; # becomes $x += ($x * .05)? Or maybe $x *= 1.05 ?
$x * 5%; # becomes $x * .05 ?
For ratio-like comparisons for effective equality of floats some
Thinking about what I actually do. . .
A near equal test of a float ought to be a fractional error based on
the current value of the float.
$x tested for between $a*(1.0 + $errorfraction) and $a*(1.0 - $errorfraction)
If you're dealing with propagation of errors during processing of
data
At 11:42 -0600 2/22/09, Chris Dolan wrote:
Floating point time would be cooler. :-)
And it has been in use by Microsoft in the Excel spreadsheet since
the Apple Plus which didn't have floating point hardware. But then
Excel uses the day as the unit. the second would be better.
On Sunday, 5. October 2008 04:23:42 Darren Duncan wrote:
Note that just as integers are naturally radix independent, the unlimited
rationals should be too, and the latter can compactly represent all
rationals as a triple of integers corresponding roughly to a (normalized)
[mantissa, radix,
At 09:58 -0700 4/14/08, Larry Wall wrote:
By the way, you don't need to put parens around the arguments to X. It takes a
list on either side. We made it tall so that it would stand out visually
anyway:
$a,$b,$c X $x,$y,$z
How long before some engineer or 3D graphic artist gets really
At 09:46 -0400 3/27/08, Mark J. Reed wrote:
Is it just me, or is all this talk about precedence and functions vs operators
vs methods creating a niggling sensation in anyone else's head? It feels like
we're in the vicinity of another one of them Big Simplifying Idea things.
Unfortunately, I
At 21:40 +0100 3/25/08, TSa wrote:
Doug McNutt wrote:
Don't allow it ( = - f($x); )to become
= f(-$x); ## wrong!
Unless of course f does Linear, then you can factor out or in the
multiplication with -1 at will. So linearity of operators and
functions is a very interesting property
At 17:06 +0100 3/20/08, TSa wrote:
BTW, do we have a unary multiplikative inversion operator?
That is 1/ as prefix or **-1 as postfix? Perhaps .inv as method?
Do we have .neg for additive inversion?
There certainly is the unary minus even though it is badly interpreted in some
languages,
At 17:30 + 2/24/08, Luke Palmer wrote:
On Sun, Feb 24, 2008 at 3:00 PM, Aristotle Pagaltzis [EMAIL PROTECTED] wrote:
And I read both very carefully and failed to understand most of it.
I use perl for physics and engineering mostly because I forgot most of my
FORTRAN long ago and perl works
At 11:52 +0200 10/8/07, TSa wrote:
HaloO,
My understanding is that values like NaN or Inf are exceptional. That
means you can understand them as unthrown or in-band exceptions. Like
undef they might contain interesting information about their
origination. That being said I think these exceptional
At 09:15 -0700 6/1/07, Larry Wall wrote:
: To conclude, as hash definitely tastes better than a dictionary, we
: should stick to that name. ;)
:
: At least nobody can say that Perl is bad taste!
Then maybe we should rename Array to Skewer or Kabob or some such...
Hmm, except it's hard to random
At 11:43 -0700 5/14/07, Larry Wall wrote:
In other words, the sigil is consistently a noun marker in Perl 6, even when a
sigil is used on a verb.
It would seem to me that a preprocessor, written in perl of course, could
easily respond to DIMENSION noun AS double statements or whatever you like
At 00:32 + 1/23/07, Smylers wrote:
% perl -wle 'print 99 / 2'
49.5
I would expect the line to return 49 because you surely meant integer division.
Perl 5 just doesn't have a user-available type integer.
% perl -wle 'print 99.0 / 2.0' OR
% perl -wle 'print 99.0 / 2'
would return 49.5
At 17:35 +0100 1/9/07, TSa wrote:
May I use this to remind the list that I proposed to define the modulus in the
most algebraically pleasing way, i.e. in the Euclidean definition.
(See http://www.cs.uu.nl/~daan/download/papers/divmodnote-letter.pdf)
E.g. this modulus is also defined for Complex
At 09:24 -0800 1/2/07, Larry Wall wrote:
But I'm also still wondering whether a simpler approach is to declare
that Num is a role that can encapsulate objects of class Int, Num,
Rat, or Dec as necessary. There also a lot to be said for simple...
Simple. . . YES! but I'm in no position to help.
Just a perl 5 physicist here. I had to run to the Camel book to find out that
grep existed in the world of perl. But I have done this (from memory):
$stuff_in_lines = `grep suntide *.txt`;
I never thought about the potential for serious ambiguity in interpretation.
The UNIX grep tool is really
At 11:34 -0400 5/7/06, David K Storrs wrote:
Hmmm...This doesn't seem to have particularly grabbed the popular imagination
among the Perl6 crowd.
I'm a lurker here, mostly interested in keeping perl 6 usable for mathematics
and physics, but unable to keep up with most of the things I read.
At 21:30 +0100 2/8/06, Juerd wrote:
Larry Wall skribis 2006-02-08 8:38 (-0800):
It would be nice to have other data points
In the Macintosh world:
1) say is a reserved word in AppleScript that sends text to a speaker (with
windings and a cone).
2) We are forever mucking with $/ and $\ set
At 09:38 +0800 1/18/06, Audrey Tang wrote:
Also, would you be happy with different treatments of Int/Int versus
Num/Num?
0/0 # fail illegal division by zero
0.0/0.0 # NaN
I plead guilty. I was not aware that perl6 was going to allow types to be
defined like int and float.
Physicist here. One who believes -2**2 is negative.
At 23:26 +0800 1/17/06, Audrey Tang wrote:
Several options:
- - Use whatever the underlying num semantics available
That's likely to be in hardware. It might even be hard to detect without
looking at the NaN returned and that would be a waste
At 15:59 +0100 11/14/05, Michele Dondi wrote:
I must say that I didn't follow the discussion (complex) very much. But this
makes me think of this too: the two representations are handy for different
calculations. It would be nice if they somehow declared what they can do
better (or at all) and
I fear that, at age 70, I shall not live long enough to become efficient with
perl 6.
Two full years ago I purchased and read Perl 6 Essentials. That lead me to
this list which I have enjoyed but never felt competent to contribute much.
Pretty much all of what I leaned in Essentials has been
At 13:31 -0400 8/15/05, Mark Reed wrote:
More specifically, that's the astronomical Julian Day, or JD, and JD 0 began
at noon Universal Time (a.k.a. GMT) on January 1, 4713 BC in the Julian
calendar. Sometimes this is called the Julian Astronomical Day, or JAD, to
distinguish it from various
At 16:18 -0700 4/15/05, gcomnz wrote:
More questions stemming from cookbook work... Decimal Comparisons:
The most common recipe around for comparisons is to use sprintf to cut
the decimals to size and then compare strings. Seems ugly.
The non-stringification way to do it is usually along the
At 17:53 +0100 3/10/05, Thomas Sandlaß wrote:
'Co' means together like in coproduction. And 'contra' is the opposite
as in counterproductive. With instanciating parametric types the question
arises how a subtype relation between instanciating types propagates
to the template. E.g with Int : Num,
I have just finished reading Perl 6 Essentials. It was much appreciated and I
proceeded to the perl6 web site to check out some changes that make perl useful for
tasks other than practical report extraction. In particular, things mathematical. When
I saw the wide array of math functions -
40 matches
Mail list logo