Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
Determine the constant term in an expression
ResourceFunction["ConstantTerm"][expr,vars] removes all terms in expr that involve vars. |
Return an expression that does not depend on x:
| In[1]:= |
| Out[1]= |
Return an expression that does not depend on x or y:
| In[2]:= |
| Out[2]= |
Return all terms that do not depend on x or y:
| In[3]:= |
| Out[3]= |
| In[4]:= |
| Out[4]= |
| In[5]:= |
| Out[5]= |
If every term in an expression involves all of its variables, then 0 is returned:
| In[6]:= |
| Out[6]= |
| In[7]:= |
| Out[7]= |
This work is licensed under a Creative Commons Attribution 4.0 International License