Minus: Unterschied zwischen den Versionen

Aus JACK Wiki
Zur Navigation springen Zur Suche springen
(Die Seite wurde neu angelegt: „===Beschreibung=== Bei der ''Subtraktion'' werden zwei Zahlen subtrahiert. ===Syntax=== a - b minus(a,b) ===Parameter=== * '''a''' - Objekt * '''b'''…“)
 
Zeile 15: Zeile 15:


===Beispiele===
===Beispiele===
  <math>5-3</math>   --> returns <math>2</math>
  5-3    --> returns 2  
 
  <math>\frac{5}{5} - \frac{1}{5}</math>   --> returns <math>0.8</math>
  5/5 - 1/5    --> returns 0.8  
 
  <math>5-a</math>   --> returns <math>5-a</math>
  5-a    --> returns 5-a  
 
  <math>b-c</math>   --> returns <math>b-c</math>
  b-c    --> returns b-c  
 
  <math>sin(x) - z</math>   --> returns <math>sin(x) - z</math>
  sin(x) - z    --> returns sin(x) - z
 
  <math>cos(0) - a</math>   --> returns <math>1-a</math>
  cos(0) - a    --> returns 1-a
 


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

Version vom 25. September 2018, 10:07 Uhr

Beschreibung

Bei der Subtraktion werden zwei Zahlen subtrahiert.

Syntax

 a - b
 minus(a,b)

Parameter

Return Value

Die Rückgabe ist abhängig von der Eingabe. Dabei wird soweit wie möglich die Eingabe ausgerechnet.

Beispiele

5-3    --> returns 2 

5/5 - 1/5    --> returns 0.8 

5-a    --> returns 5-a 

b-c    --> returns b-c 

sin(x) - z    --> returns sin(x) - z

cos(0) - a    --> returns 1-a

Hinweise

  • Mit equal ("==") lässt sich das Ergebnis anschließend ebenfalls mit einem anderem Objekt vergleichen.