heyoka.make_vars#
- heyoka.make_vars(*args: str) expression | list[expression] #
Create variable expressions from strings.
This function will return one or more
expression
instances containing variables constructed from the input arguments. If a single argument is supplied, a single expression is returned. Otherwise, a list of expressions (one for each argument) is returned.- Parameters:
args – the input string(s).
- Returns:
one or more expressions constructed from args.
- Raises:
ValueError – if the number of args is zero.
- Examples:
>>> from heyoka import make_vars >>> x = make_vars("x") >>> y, z = make_vars("y", "z")