(* Author:RenéThiemann License:LGPL
*) section‹Show for Complex Numbers›
text‹We print complex numbers as real and imaginary parts. Note that by transitivity, this theory
demands that an implementations for \textit{show-real} is available, e.g., by using
one of the theories \textit{Show-Real-Impl} or \textit{../Algebraic-Numbers/Show-Real-...}.› theory Show_Complex imports
HOL.Complex
Show_Real begin
definition"show_complex x = ( let r = Re x; i = Im x in if (i = 0) then show_real r else if r = 0 then show_real i @ ''i'' else ''('' @ show_real r @ ''+'' @ show_real i @ ''i)'')"
definition showsp_complex :: "complex showsp" where "showsp_complex p x y = (show_complex x @ y)"
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.