Calc: Difference between revisions

From SweepMe! Wiki
Jump to navigation Jump to search
(Created page with " Category:Modules")
 
(Supported functions added)
Line 1: Line 1:
== 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)
=== [https://docs.python.org/3/library/functions.html python built-in functions] ===
* 'abs' = abs
* 'len' = len
* 'max' = max
* 'min' = min
* 'int' = int
* 'float' = float
* 'round' = round
* 'str' = str
=== [https://docs.python.org/3/library/math.html 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
=== [https://docs.python.org/3/library/random.html random functions] ===
* 'random' = random.random
* 'random' = random.randint
=== [https://docs.scipy.org/doc/numpy/reference/routines.html 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


[[Category:Modules]]
[[Category:Modules]]

Revision as of 14:23, 10 March 2019

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