Hi all, I've begun working on a new system called MathLib, which allows you to (currently) perform integer operations on numbers of arbitrary sizes. cout...
... Cool. There's just one problem with it though: ml_builtin("multiply","88888888","88888888") = 7901234487654314 88888888*88888888 = 7901234409876544 I've...
... 376187839665933293455559617066599168227424908548011159333469 ... Weird... ... Go for it! I've got a (partially) working division routine written, and I"m...
A while back there was an announcement that xDraw source had been opened/freed by M Uli Kusterer. Some list member was in possession of the sources and would...
... *blush* Eh heh heh heh.... that was my fault. I believe that was around the time when I was shifting the project to Jonathyn, and that sorta got lost in...
... would ... Looking at your code, the "compare" function would seem to need work. It first compares the lengths of the two arguments -- but only *after* any...
... <snip> ... Awesome. Also keep in mind that this will probably be converted to an X-ternal (i.e. re- written in C++ at some point. I already know a guy...
... Actually, I've already solved the control character problem by using Rinaldi's FullRead and FullWrite XCMDs and his [x] syntax. (I needed FullRead and...
... Cool. ml_builtIn("mod","65536","12") seems to freeze. BTW Mod can easily be "synthesized" from the other operations if we can't get it to work. ... You...
... Actually it's a much more complex issue than we think, 'cause I was thinking of using commas to separate the real and imaginary parts of a complex number...
... I see that that's how you did it. :) I have just restructured the code a little and added decimal support for addition. Periods and commas are treated the...
I succeeded in adding decimal support for addition, subtraction, and multiplication. Periods and commas are both treated as decimal points. I also have complex...
... ? It should just be comparing the strings... Ah well... I broke my own rule on never using operators! ... Well, ideally we would make that a global...
I downloaded the SphereTalk compiler and noticed that the file SphereTalk Syntax.txt is messed up. Probably because the line breaks are Unix rather than MacOS...
... Suggestion: Design all the operating algorithms to work on integer numbers -- but keep track of where the operands kept their decimal points initially, so...
... How about tabs? ... That's gonna bite you some time, I just *know* it will. What I've done is invent two variables -- DecPt, which contains the decimal...
... Remember: This isn't a program, it's an API. All API's have rules you have to follow, and AFAIK, HyperCard doesn't support commas in its numbers either. So...
... Actually, that's _exactly_ what I've done. :) ... OK, I guess it's unanimous; we'll use a global variable for repeating decimal / irrational number...
... I know what you mean. The only problem with it is that we'd probably have to rewrite everything in order to allow these kinds of numbers as input. We'd...
... I hate when that happens. Here's what you can do: Open the file in SimpleText, type a return, copy that return. Choose Replace from the Edit menu. In the...
... The problem with tabs is that they're hard to type; it's not easy to get tabs into file names, dialog boxes, HyperCard fields, the script editor, etc....
Actually, I just opened it in BBEdit and it was fine once I set the "Translate line breaks" option to true. Is there a way in MacOS X to make sure that text is...
... Not that I know of; no options for that sort of thing appear in TextEdit. I'll just have to use Tex-Edit Plus to change the line separators before I stuff...
... I had the same problem with signed numbers - or didn't you notice all that ugly patch code? ;) You're right, of course. And it's not really that important...
I figured out a way to speed up mod. Define a global variable (gML_LASTQUOTIENT) which the "divide" operation copies its result into before returning. Now...
I have just finished MathLib 0.0.3J and have uploaded it here: http://www.angelfire.com/d20/jrdesktop/hcsw/mathlib.sit Here's a list of what I have done: *...
Very nice. I'm adding some extra performance improvements (x*0=0, x*1=x, x* 2=x+x, etc.) and I'll re-release it. You'd be surprised what a few performance ...
... Yes, you would. Notice my surprise when multiplication dropped from 30 ticks to 6. I already caught 0*x (in the "Infinity Handling Section": if ...