functions-online

calculate

en
de
es
fr

description

This function calculates a mathmatic formula. It is somewhat like a calculator, but without an usable frontend. Often you have the problem, that you just want write down the complete formular, but on GUI-based calculators you can't, here you can! Allowed are the usual operators (+, -, *, /, %) and the following functions:

  • exp($arg) (exp(1) = 2,718...)
  • log($arg, $basis) (log(2, 8) = 1/3)
  • pow($basis, $exponent) (pow(4, 2) = 16)
  • sqrt($arg) (sqrt(16) = 4)

Attention: The comma (,) is reserved to devide the parameters of function. The comma in this way is represented by the dot (.).

Diese Funktion rechnet eine mathematisch Formel. Sie ist eine Art Taschenrechner, allerdings ohne richtiges Frontend. Es gibt ja oft den Fall, dass man eigentlich nur eine Funktion abschreiben möchte, dies ist hier nun möglich. Neben den üblichen Rechnoperatoren (+, -, *, /, %) sind folgende Funktionen erlaubt:

  • exp($arg) (exp(1) = 2,718...)
  • log($arg, $basis) (log(2, 8) = 1/3)
  • pow($basis, $exponent) (pow(4, 2) = 16)
  • sqrt($arg) (sqrt(16) = 4)

Hinweis: Das Komma (,) ist der Trennung von Parametern innerhalb von Funktionen vorbehalten. Als Komma im eigentlichen Sinn muss der Punkt (.) verwendet werden.

Esta función calcula una fórmula mathmatic. Es algo así como una calculadora, pero sin utilizar un frontend. Offen tiene usted el problema, que sólo quiere escribir la fórmula completa, pero el GUI basado en las calculadoras no se puede, aquí se puede! Permitidas son las habituales de los operadores (+, -, *, /,%) y las siguientes funciones:

  • exp($arg) (exp(1) = 2,718...)
  • log($arg, $basis) (log(2, 8) = 1/3)
  • pow($basis, $exponent) (pow(4, 2) = 16)
  • sqrt($arg) (sqrt(16) = 4)

Atención: La coma (,) está reservada para dividir a los parámetros de la función. El coma de este modo está representada por el punto (.).

Cette fonction calcule un mathmatic formule. C'est un peu comme une calculatrice, mais sans interface utilisable. Offen vous avez le problème, que vous voulez juste écrire le formulaire complet, mais le GUI basée sur les calculatrices, vous ne pouvez pas, vous le pouvez! Admis sont les habituels opérateurs (+, -, *, /,%) et les fonctions suivantes:

  • exp($arg) (exp(1) = 2,718...)
  • log($arg, $basis) (log(2, 8) = 1/3)
  • pow($basis, $exponent) (pow(4, 2) = 16)
  • sqrt($arg) (sqrt(16) = 4)

Attention: La virgule (,) est réservée à diviser les paramètres de la fonction. La virgule dans ce sens est représenté par le point (.).

function call

number calculate( string $formula )

test calculate online




comments for calculate

be the first

No comments so far for calculate. Leave your's as first below.

+

Leave your comment