Calc

From SweepMe! Wiki
Revision as of 14:23, 10 March 2019 by Afischer (talk | contribs) (Supported functions added)
Jump to navigation Jump to search

Supported Functions

There is a limited number of functions that can be used inside the Calc module. The following list gives the string that can be used and the corresponding function that will be loaded. If there are further functions needed, please let us know (support@sweep-me.net)

python built-in functions

  • 'abs' = abs
  • 'len' = len
  • 'max' = max
  • 'min' = min
  • 'int' = int
  • 'float' = float
  • 'round' = round
  • 'str' = str

math functions

  • 'ceil' = math.ceil
  • 'degrees' = math.degrees
  • 'fabs' = math.fabs
  • 'floor' = math.floor
  • 'fmod' = math.fmod
  • 'frexp' = math.frexp
  • 'hypot' = math.hypot
  • 'ldexp' = math.ldexp
  • 'modf' = math.modf
  • 'pi' = math.pi
  • 'pow' = math.pow
  • 'radians' = math.radians

random functions

  • 'random' = random.random
  • 'random' = random.randint

numpy functions

  • 'sqrt' = np.sqrt
  • 'sin' = np.sin
  • 'sinh' = np.sinh
  • 'asin' = np.arcsin
  • 'arcsin' = np.arcsin
  • 'cos' = np.cos
  • 'cosh' = np.cosh
  • 'acos' = np.arccos
  • 'arccos' = np.arccos
  • 'tan' = np.tan
  • 'tanh' = np.tanh
  • 'arctan' = np.arctan
  • 'atan' = np.arctan
  • 'arctan2' = np.arctan2
  • 'atan2' = np.arctan2
  • 'exp' = np.exp
  • 'ln' = np.log
  • 'log' = np.log
  • 'log10' = np.log10
  • 'average' = np.average
  • 'mean' = np.mean
  • 'arange' = np.arange
  • 'linspace' = np.linspace
  • 'logspace' = np.logspace
  • 'divide' = np.divide
  • 'sum' = np.sum
  • 'trapz' = np.trapz
  • 'sign' = np.sign
  • 'isnan' = np.isnan