... times ... well, then you have good random numbers (actually, similar is if you use linux...). rand on cygwin is crappy, but it is close enough to random...
... There is a guarantee that short holds at least -32767..32767. Usually it holds -32768..32767. There are exotic architectures where it has 32 bits because...
... it ... sizeof ... Usually it ... bits ... ok. ... find ... size. ... knows ... halves ... yes, either is possible. actually, given the fact that x86 is...
... I know - that's why I keep mentioning things which are already done, and done well, ready to be used :-) Why do you write everything yourself? I try to...
... people. ... usually because this is how I typically approach things. I don't like lib dependencies, and I am not that fond of using other peoples' code. I...
for various reasons I decided to rewrite my expression parser to have operator precedence (partly this was related to the expression parser getting ugly with...
Why do so many programming languages these days have complex number support built in? It seems like such an obscure feature, yet lots of languages, such as...
... yes, this and bignums. someone else had recently asked "why have them?". I don't know really. it is quite doubtful that most software would even use the...
... Maybe it's Lisp envy: http://www.cs.washington.edu/ai/cltl/clm/node20.html#SECTION00614000000000000000 I'm not sure if complex counts as "in the library"...
... I guess it depends on the language and the language designers intent. In many cases, directly supported features are easier to use than library features -...
... Complex numbers aren't *that* obscure. Actually, quite the opposite- they show up all the time in a lot of modelling of physical phenomenon. For example,...
... String concatenation is used much more often than imaginary numbers. ... Python, Scheme, and D (my 3 example languages) have excelent facilities for doing...
... opposite- they ... For ... for ... OGG ... values- ... hmm, often I see these represented with plain floats or fixed-point values (in c at least). ... For ...
... Well, you can have arbitrary order vectors, and simply interpret a complex number as a 2-vector and a quaternion as a 4-vector. However, the fun of...
... It has certainly been more than enough to keep Fortran in use to this day. But I would say to cr88192 what I said to Paul Graham about objects in Arc: if...
... though. ... term ... However, ... which ... such ... yes, they may be worth looking into. I don't get those who were trying to flog off a form of...
... practice. ... about ... this ... in ... only ... I never said I didn't like them, just I don't really use them or know how much they are used (vs. other...
... Some languages do that... C# does it that way. I had to draw for someone once the difference between nested and two-dimensional. ... This looks like...
... One of the many things language designers need to determine is this particular problem. Of course, sometimes it is more clear, such as in Smalltalk where...
Kyle Hayes
kyle@...
Aug 11, 2004 6:16 am
2052
... more ... instead ... ok, cool. so at least it was not too weird... ... indexing as ... attribute ... people ... ok. cool. wandering thoughts apparently led...
... more ... instead ... in ... yes. I use a c style syntax. the idea made sense to me, as doing it like: mat[y][x] would require simulating an intermediate...
... You can. It's called geometeric algebra, although you really need linear algebra to appreciate it (abstract algebra doesn't hurt either). I'm told that...
... Actually, there are other reasons Fortran is still in use to this day- including inertia and the fact that Fortran *still* produces faster numeric code...
... IIRC, you map quaternions and operations there on onto 2x2 matricies and operations there on. I forget exactly how the mapping works, and am too lazy to...
... Sorry - thay came out a bit harsh. Of course I would encourage you to learn more about complex numbers (and Paul more about objects), but what I meant was...
... one ... term ... linear ... I'm told ... ok, cool. I may try to look into it more (I have verified that none of my math books really cover compex numbers...
... I think a non-systems programming language needs seemless integration with bignums. It's not that you always need numbers bigger than 2^32 or 2^64, but it ...
... quaternions ... element ... issues. ... matricies and ... am too ... ok. it didn't seem that useful though. ... more ... instead ... matricies, ... you ......
... The problem with this is that bignums generally have orders of magnitude worse performance than hardware-based ints. -- "Usenet is like a herd of...
... know ... to ... your ... that ... nearly ... ok, I was looking into them some more earlier. ... implemented ... practical ... 30 ... in a ... you ... your ...