Complex: Unterschied zwischen den Versionen

Aus JACK Wiki
Zur Navigation springen Zur Suche springen
Keine Bearbeitungszusammenfassung
Zeile 18: Zeile 18:
  complex(1, 2)    --> returns <math>1 + i \cdot 2</math>  
  complex(1, 2)    --> returns <math>1 + i \cdot 2</math>  
   
   
  complex(constpi(), -12)  --> returns <math>\pi - i \cdot 12</math>  
  complex(constPi(), -12)  --> returns <math>\pi - i \cdot 12</math>  
   
   
  complex(conste(), conste())    --> returns <math>E + i \cdot E</math>
  complex(constE(), constE())    --> returns <math>E + i \cdot E</math>


===Hinweise===
===Hinweise===

Version vom 28. November 2020, 23:26 Uhr

Zugehörige Evaluatoren

  • MathEvaluator

Beschreibung

Die Funktion Complex erstellt ein komplex Zahl mit einem Real- und Imaginär-Teil.


Syntax

 complex(Gleitkommazahl a, Gleitkommazahl b)

Parameter

Return Value

  • Gibt eine komplexe Zahl (Objekt) zurück.

Beispiele

complex(1, 2)    --> returns <math>1 + i \cdot 2</math> 

complex(constPi(), -12)   --> returns <math>\pi - i \cdot 12</math> 

complex(constE(), constE())    --> returns <math>E + i \cdot E</math>

Hinweise

  • Das Objekt kann in Sage weiterverwendet werden. Siehe hierzu EvaluateInSage
  • Funktionen wie IsRealNumber erkennen dies als eine komplexe Zahl und geben dementsprechend den korrekten Wert zurück