Function Repository Resource:

# AllDependentVariables (1.1.0)current version: 1.2.2 »

Retrieve a list of all dependent variables for a given expression

Contributed by: E. Chan-López, Jaime Manuel Cabrera & Jorge Mauricio Paulin Fuentes
 ResourceFunction["AllDependentVariables"][expr,ivar] gives all variables dependent on ivar within a given expr.

## Details and Options

ResourceFunction["AllDependentVariables"] threads over lists in the first argument.

## Examples

### Basic Examples (1)

Use AllDependentVariables to get the expression that matches to be a mathematical solution:

 In[1]:=
 Out[1]=

### Scope (2)

Use AllDependentVariables to get the expressions that match dependent variable:

 In[2]:=
 Out[2]=

Use AllDependentVariables with a list of complicated expressions:

 In[3]:=
 Out[3]=

### Options (2)

#### Modulus (2)

Find dependent variables present after reducing coefficients modulo 2:

 In[4]:=
 Out[4]=

For polynomials, AllDependentVariables and Variables gives the same results:

 In[5]:=
 Out[5]=

### Applications (3)

Use AllDependentVariables to define a simple function to compute the equations of motion for a given Hamiltonian:

 In[6]:=

Use HamiltonianEquations with the Hamiltonian for the spherical pendulum:

 In[7]:=
 In[8]:=
 Out[8]=

Use HamiltonianEquations with the Hamiltonian for the PUMA-Like Robot:

 In[9]:=
 In[10]:=
 Out[10]=

### Properties and Relations (2)

Use AllDependentVariables with the resource function SymbolToSubscript:

 In[11]:=
 In[12]:=
 Out[12]=

Use AllDependentVariables with the resource functions FormalizeSymbols and SolutionRulesToFunctions:

 In[13]:=
 In[14]:=
 Out[14]=
 In[15]:=
 Out[15]=

### Possible Issues (1)

AllDependentVariables don't recognize curried functions as dependent variables:

 In[16]:=
 Out[16]=

### Neat Examples (1)

AllDependentVariables threads composite functions to obtain the dependent variables:

 In[17]:=
 Out[17]=
 In[18]:=
 Out[18]=

## Publisher

Ramón Eduardo Chan López

## Version History

• 1.2.2 – 20 September 2023
• 1.2.1 – 28 July 2023
• 1.2.0 – 21 July 2023
• 1.1.0 – 05 July 2023
• 1.0.0 – 21 April 2023