Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
Determine whether an expression represents a linear function of a given set of variables
Test whether an expression represents a linear function of a given variable:
| In[1]:= |
| Out[1]= |
| In[2]:= |
| Out[2]= |
Test for linearity with respect to a list of variables:
| In[3]:= |
| Out[3]= |
| In[4]:= |
| Out[4]= |
| In[5]:= |
| Out[5]= |
Variables listed in the second argument are considered together in the test for linearity:
| In[6]:= |
| Out[6]= |
Expressions that are constant with respect to a variable are not considered linear:
| In[7]:= |
| Out[7]= |
| In[8]:= |
| Out[8]= |
Wolfram Language 11.3 (March 2018) or above
This work is licensed under a Creative Commons Attribution 4.0 International License