Octave code to perform arbitrary-precision integer arithmetic. It may or may not work in Matlab.

The supported operations are:

>> s = a = intinf (126) % Creation of intinf-class object from integer or string
>> b = intinf ('-792716404922304611755050042308687')
>> c = a + b % Addition
>> d = a - b % Subtraction
>> e = c * d % Multiplication
>> f = (e - a^2) / b % Exponentiation, division
>> f == -b % Logical operators
>> [q, r] = intinf_divide (b^2, a) % Divsion and remainder
>> x = intinf_rand (100) % Random number (here, with 100 digits)

TODO:
* Better errors.
* Make a package loadable by octave's pkg function.

Project Samples

Project Activity

See All Activity >

Categories

Mathematics

License

GNU General Public License version 3.0 (GPLv3), GNU Library or Lesser General Public License version 3.0 (LGPLv3)

Follow octave-intinf

octave-intinf Web Site

Other Useful Business Software
Enterprise-grade ITSM, for every business Icon
Enterprise-grade ITSM, for every business

Give your IT, operations, and business teams the ability to deliver exceptional services—without the complexity.

Freshservice is an intuitive, AI-powered platform that helps IT, operations, and business teams deliver exceptional service without the usual complexity. Automate repetitive tasks, resolve issues faster, and provide seamless support across the organization. From managing incidents and assets to driving smarter decisions, Freshservice makes it easy to stay efficient and scale with confidence.
Try it Free
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of octave-intinf!

Additional Project Details

Operating Systems

Linux

Intended Audience

Science/Research

User Interface

Command-line

Programming Language

MATLAB

Related Categories

MATLAB Mathematics Software

Registered

2018-09-02