News:

Masm32 SDK description, downloads and other helpful links
Message to All Guests
NB: Posting URL's See here: Posted URL Change

Main Menu

Analytic Geometry.

Started by KeepingRealBusy, December 25, 2014, 09:58:17 AM

Previous topic - Next topic

Gunther

Dave,

Quote from: KeepingRealBusy on December 30, 2014, 05:04:05 AM
Do you have any clue which Octave package (if any) may support bignumbs?

I looked at the function list in Geometry, but without downloading the code, I do not know if the functions support bignumbs.

Dave.

Octave is available for Windows, too. An explanation how to install and use it can be found here. The sources are available and should give an idea to solve the problem. But it's probably better to follow Dedndave's proposal, because to use the Octave sources needs some knowledge in C/C++ and the installation of GCC (MinGW) under Windows.

Gunther
You have to know the facts before you can distort them.

dedndave

you will find that support of signed values is essential   :t
and - for long integers, it slows things down to convert a negative to positive to work on it
so, the routines should natively support signed values by design whenever possible

dedndave

if you look at my signed ling long kai fang routines, you will get an example of how to handle negatives as positives
i create a DWORD flag that is either 0 or 0FFFFFFFFh (0 if it's positive)
when processing the working value, that flag is XOR'ed onto each DWORD (in register)
at the end, when i process the last DWORD, the flag is also subtracted from the low-order DWORD (also in register)
(X - (-1)) = X + 1

so, you XOR the entire negative value with 0FFFFFFFFh, then add one
this is faster than doing that to the entire value in memory before processing

KeepingRealBusy

Dave,

Thank you for the hint, I'll look into it.

Dave.