Zusammenfassung
Bei diesem Projekt soll ein Programm erstellt werden, mit dem sich beliebige mathematische Funktionen grafisch darstellen lassen. Das Programm erlaubt es, verschiedene Funktionen als Text in Form von Ausdrücken einzugeben, die eine Variable x enthalten. Wir werden dazu wieder die Objektorientierung nutzen, im Gegensatz zu den anderen Projekten in Teil II werden wir aber nicht auf das objektorientierte Grafiktool, sondern auf die GrafServer/GrafClient-Umgebung aus Teil I zurückgreifen. Da wir (nahezu) beliebige mathematische Funktionen erlauben möchten, ist eine Hauptschwierigkeit des Programms die Zerlegung und Auswertung der entsprechenden Ausdrücke. In unserem Lösungsvorschlag werden wir dazu eine eigene Klasse (Expression) erstellen, in der auf die in Teil III erläuterten Klassen string und vector der C++-Standardbibliothek zurückgegriffen wird (s. Kap. 18). Eine weitere Klasse (FuncPlot) stellt Methoden zur grafischen Darstellung von Funktionen zur Verfügung. Insgesamt ist dieses Projekt programmiertechnisch recht anspruchsvoll.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Preview
Unable to display preview. Download preview PDF.
Author information
Authors and Affiliations
Rights and permissions
Copyright information
© 2023 Springer Fachmedien Wiesbaden GmbH, ein Teil von Springer Nature
About this chapter
Cite this chapter
Hoch, T., Küveler, G. (2023). Multifunktionsplotter. In: C/C++ anwenden. Springer Vieweg, Wiesbaden. https://doi.org/10.1007/978-3-658-38093-9_15
Download citation
DOI: https://doi.org/10.1007/978-3-658-38093-9_15
Published:
Publisher Name: Springer Vieweg, Wiesbaden
Print ISBN: 978-3-658-38092-2
Online ISBN: 978-3-658-38093-9
eBook Packages: Computer Science and Engineering (German Language)