Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Biginteger
#1
Is possible to use the class biginteger of java with QM?
#2
I have created the functions: sumar_strs, restar_strs, multiplicar_strs and dividir_strs. Exists another way?
#3
In QM, largest data type is DECIMAL. It has several functions to add, multiply, etc. Read Help.

You should find some dll on the Internet to work with arbitrary precision integers. I will help to convert dll declarations.

Maybe it is possible to use java in QM, but I don't know how.
#4
I found this:

How can I get something like this:
a=143223453461242341234213423152345325235345
b=1235243231431245345
[...]
a/b=115947571957381153674616
a%b=71715141530572825


Attached Files
.zip   BigInteger.zip (Size: 20.18 KB / Downloads: 546)
#5
It is just C# source code. To use by QM, it must be compiled to a dll or COM component. Also, operators must be converted to normal functions. Much work.
#6
Ok. Thanks.
#7
How can I get something like this:
a=143223453461242341234213423152345325235345
b=1235243231431245345
[...]
a/b=115947571957381153674616
a%b=71715141530572825

http://sigurnost.zemris.fer.hr/algoritmi...bigint.zip
#8
Does not contain anything that can be used with QM.
#9
and biginteger.dll?


Attached Files
.dll   BigInteger.dll (Size: 40 KB / Downloads: 333)
#10
The dll does not contain any exported functions or COM classes.
#11
http://www.big-numbers.com/download/2007/Full2007.exe
#12
very expensive Confusedhock:
#13
...and http://codeguru.earthweb.com/dbfiles/get...s=20061129
#14
Example
Code:
Copy      Help
typelib BIG_INTEGER {0C48AB67-3C1E-4DE0-9535-A04A55005429} 5.0
BIG_INTEGER.BigInteger a._create b._create c
a._Value="143223453461242341234213423152345325235345"
b._Value="1235243231431245345"
c=a.Divide(b)
str s=c._Value
out s

This dll is a COM component. Register it using the Type Libraries dialog.
#15
Thanks.

also exists http://cs.nyu.edu/exact/core/gmp/.

How to use it with QM?
#16
Make dll from the library. Not sure what program can be easily used for this, it seems that MS Visual Studio also can be used. Or find (somewhere in the internet) and download the dll (probably gmp.dll). Or the dll may be alraedy in the library package. Then convert header (.h) files containing dll function declarations and associated declarations to QM.
#17
I found:

http://www.esnips.com/web/AtticLibraries...mpiledbyme

but I don't know to use it. Can you help me?
#18
What page and file?
#19
page: http://www.esnips.com/web/AtticLibrarie ... mpiledbyme

file: mathlibs-MPFR-2.2+GMP-4.2.1mingw.rar
#20
Convert C declarations to QM, etc. You should know C language. Also there is no documentation.


Forum Jump:


Users browsing this thread: 1 Guest(s)