Discussion Overview
The discussion revolves around creating a new data type in Java or C that can handle very large numbers, specifically for calculations involving large factorials, such as 200!. Participants explore methods for implementing arbitrary precision arithmetic without using existing classes like BigInteger in Java.
Discussion Character
- Exploratory
- Technical explanation
- Homework-related
Main Points Raised
- One participant asks how to create a new data type for larger numbers than those supported by standard types like int, double, or long.
- Another participant suggests searching for "arbitrary precision arithmetic" and mentions the existence of Java's BigInteger class.
- A different participant notes that they cannot use BigInteger due to assignment restrictions.
- One reply proposes using base 65536 or base 4294967296 for convenience in calculations, indicating a method of handling large numbers manually.
- Another participant mentions the need to use bit operators and to track bits that overflow from lower to higher words in the proposed data type.
Areas of Agreement / Disagreement
Participants express different approaches to the problem, with no consensus on a single method for creating the new data type. The discussion includes both suggestions for existing solutions and original methods, indicating multiple competing views.
Contextual Notes
Participants have not resolved the specifics of the implementation, and there are limitations regarding the use of existing libraries like BigInteger. The discussion also lacks detailed mathematical steps for the proposed methods.
Who May Find This Useful
This discussion may be useful for students or programmers interested in implementing custom data types for large number calculations, particularly in the context of assignments or projects that restrict the use of standard libraries.