Approx: Unterschied zwischen den Versionen

Aus JACK Wiki
Zur Navigation springen Zur Suche springen
Zeile 29: Zeile 29:
   
   
  approx([pos=1])
  approx([pos=1])
 
  approx([var=a])
  approx([var=a])
 
  approx([var=a])
  approx([var=a])



Version vom 24. September 2018, 12:35 Uhr

Beschreibung

Die Funktion approx liefert eine annäherungsweise korrekte Darstellung einer Funktion oder eines Objekts. Die Funktion gibt die Annäherung als eine Gleitkommazahl zurück.

Syntax

approx(Objekt objekt)

Parameter

  • objekt - das zu approximierende Objekt

Return Value

Beispiele

Standardfälle

approx(10/3)   --> returns 3.33333333333333
approx([var=E])   --> returns 2.71828182845905

approx('e')   --> returns 2.71828182845905
approx([var=PI])   --> returns 3.14159265358979

approx('pi')   --> returns 3.14159265358979

Benutzung mit Variablen

approx([pos=1])

approx([var=a])

approx([var=a])

Hinweise