Approx: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
Keine Bearbeitungszusammenfassung |
|||
| Zeile 42: | Zeile 42: | ||
==== Benutzung mit Variablen ==== | ==== Benutzung mit Variablen ==== | ||
approx([var=a]) | |||
'''Jack2:''' | |||
approx([pos=1]) | approx([pos=1]) | ||
'''Jack3:''' | |||
approx([input=fillin1]) | |||
approx([ | |||
=== Hinweise === | === Hinweise === | ||
[[Kategorie:Math-Evaluatorfunktion]] | [[Kategorie:Math-Evaluatorfunktion]] | ||
Version vom 1. Dezember 2023, 12:50 Uhr
Zugehörige Evaluatoren
- MathEvaluator
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
- Gibt eine Gleitkommazahl zurück
Beispiele
Standardfälle
approx(10/3) --> returns 3.33333333333333
Jack2:
approx([var=E]) --> returns 2.71828182845905
approx('e') --> returns 2.71828182845905
Jack3:
approx(constE()) --> returns 2.71828182845905
approx('e') --> returns 2.71828182845905
Jack2:
approx([var=PI]) --> returns 3.14159265358979
approx('pi') --> returns 3.14159265358979
Jack3:
approx(constPi()) --> returns 3.14159265358979
approx('pi') --> returns 3.14159265358979
Benutzung mit Variablen
approx([var=a])
Jack2: approx([pos=1])
Jack3: approx([input=fillin1])