Hypercell ein ] Hypercell aus ] Zeige Navigation ] Verstecke Navigation ]
c++.de  
   

Die mobilen Seiten von c++.de:
http://m.c-plusplus.de
Infos hier [BETA]

  
c++.de :: FAQ - Rund um die Programmierung ::  Addition mit beliebig grossen Zahlen     Zeige alle Beiträge auf einer Seite Auf Beitrag antworten
Autor Nachricht
Pete
Mitglied

Benutzerprofil
Anmeldungsdatum: 10.05.2003
Beiträge: 1
Beitrag Pete Mitglied 16:54:00 10.05.2003   Titel:   Addition mit beliebig grossen Zahlen            Zitieren

Hallo alle zusammen!

Ich habe ein Problem. Ich muss ein C-Programm schreiben, dass 2 beliebig grosse Zahlen addiert. Das mit der Addition ist ja kein Problem. Aber mit den beliebig grossen Zahlen kommen ich nicht klar.

Würde mich freuen wenn ich etwas Hilfe von irgendeinen bekommen könnte.

Bis dann

Pete
Werbeunterbrechung
malfunction
Mitglied

Benutzerprofil
Anmeldungsdatum: 30.04.2001
Beiträge: 664
Beitrag malfunction Mitglied 17:34:00 11.05.2003   Titel:              Zitieren

Hier ein Versuch meinerseits, extrem ineffizient und nur als Programmierübung gedacht, handhabt große Integer, ist nicht dynamisch (Größe wird in bytes durch ein #define angegeben): http://coderz.net/malfunction/misccode/bigint.zip
Descartes
Mitglied

Benutzerprofil
Anmeldungsdatum: 01.01.2003
Beiträge: 164
Beitrag Descartes Mitglied 17:53:00 11.05.2003   Titel:              Zitieren

C und C++ Bibliotheken
http://www.voyager.prima.de/cpp/libs.html

Available C++ Libraries FAQ
http://www.trumphurst.com/cpplibs/cpplibs.phtml

Toolkits zur Bearbeitung numerischer Probleme:

GNU MP -- Arithmetic without limitations
http://www.swox.com/gmp/

GMP is a free library for arbitrary precision arithmetic, operating on signed integers, rational numbers, and floating point numbers. There is no limit to the precision except the ones implied by the available memory in the machine GMP runs on. GMP has a rich set of functions, and the functions have a regular interface.

GMP is designed to be as fast as possible, both for small operands and for huge operands. The speed is achieved by using fullwords as the basic arithmetic type, by using fast algorithms, with carefully optimized assembly code for the most common inner loops for a lot of CPUs, and by a general emphasis on speed (instead of simplicity or elegance).

GMP is believed to be faster than any other similar library. The advantage for GMP increases with the operand sizes for certain operations, since GMP in many cases has asymptotically faster algorithms.

GMP is distributed under the GNU Lesser General Public License. For more information about the GNU project, please see the official GNU web site.


HFLOAT -- The HUGE-FLOAT package
http://www.jjj.de/hfloat/

hfloat (for huge floats) is a library package for doing calculations with floating point numbers of extreme precision. It is optimised for computations with 1000...several million digits. The computations can be done in (almost) arbitrary radix.

HFLOAT is distributed under the GNU General Public License. For more information about the GNU project, please see the official GNU web site.


Blitz++
http://www.oonumerics.org/blitz/

Template Library für Matrizen und Vektoren. Schnell. Hohe Anforderungen an den Compiler.

Blitz++ is currently distributed under two licenses. You may choose between either (1) the GNU General Public License, or (2) the Blitz++ Artistic License.
c++.de :: FAQ - Rund um die Programmierung ::  Addition mit beliebig grossen Zahlen   Auf Beitrag antworten

Zeige alle Beiträge auf einer Seite




Nächstes Thema anzeigen
Vorheriges Thema anzeigen
Sie können keine Beiträge in dieses Forum schreiben.
Sie können auf Beiträge in diesem Forum nicht antworten.
Sie können Ihre Beiträge in diesem Forum nicht bearbeiten.
Sie können Ihre Beiträge in diesem Forum nicht löschen.
Sie können an Umfragen in diesem Forum nicht mitmachen.

Powered by phpBB © 2001, 2002 phpBB Group :: FI Theme

c++.de ist Teilnehmer des Partnerprogramms von Amazon Europe S.à.r.l. und Partner des Werbeprogramms, das zur Bereitstellung eines Mediums für Websites konzipiert wurde, mittels dessen durch die Platzierung von Werbeanzeigen und Links zu amazon.de Werbekostenerstattung verdient werden kann.

Die Vervielfältigung der auf den Seiten www.c-plusplus.de, www.c-plusplus.info und www.c-plusplus.net enthaltenen Informationen ohne eine schriftliche Genehmigung des Seitenbetreibers ist untersagt (vgl. §4 Urheberrechtsgesetz). Die Nutzung und Änderung der vorgestellten Strukturen und Verfahren in privaten und kommerziellen Softwareanwendungen ist ausdrücklich erlaubt, soweit keine Rechte Dritter verletzt werden. Der Seitenbetreiber übernimmt keine Gewähr für die Funktion einzelner Beiträge oder Programmfragmente, insbesondere übernimmt er keine Haftung für eventuelle aus dem Gebrauch entstehenden Folgeschäden.