ILAMB.ilamblib.SympifyWithArgsUnits

ILAMB.ilamblib.SympifyWithArgsUnits(expression, args, units)[source]

Uses symbolic algebra to determine the final unit of an expression.

Parameters
  • expression (str) – the expression whose units you wish to simplify

  • args (dict) – a dictionary of numpy arrays whose keys are the variables written in the input expression

  • units (dict) – a dictionary of strings representing units whose keys are the variables written in the input expression