Skip to main content

Multifunktionsplotter

  • Chapter
  • First Online:
C/C++ anwenden
  • 3329 Accesses

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.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Subscribe and save

Springer+ Basic
$34.99 /Month
  • Get 10 units per month
  • Download Article/Chapter or eBook
  • 1 Unit = 1 Article or 1 Chapter
  • Cancel anytime
Subscribe now

Buy Now

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 29.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 39.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

Author information

Authors and Affiliations

Authors

Rights and permissions

Reprints and permissions

Copyright information

© 2023 Springer Fachmedien Wiesbaden GmbH, ein Teil von Springer Nature

About this chapter

Check for updates. Verify currency and authenticity via CrossMark

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

Publish with us

Policies and ethics