Get free symbol in expression

free_symbols(x)

Arguments

x

Expression in which to get the free symbols in

Examples

if (has_sympy()) {
  def_sym(a, b)
  x <- (a - b)^4
  free_symbols(x)
}
#> [[1]]
#> c: b
#> 
#> [[2]]
#> c: a
#>