Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
Determine whether an expression represents a quadratic function of a given set of variables
Test whether an expression represents a quadratic function of a given variable:
In[1]:= |
Out[1]= |
In[2]:= |
Out[2]= |
Test whether a given expression represents a quadratic function of 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[6]:= |
Out[6]= |
In[7]:= |
Out[7]= |
If high-order terms in expr do not explicitly vanish, QuadraticFunctionQ[expr, …] returns False:
In[8]:= |
Out[8]= |
Explicitly taking the cubic and quartic coefficients of the previous input to be zero yields True:
In[9]:= |
Out[9]= |
Expressions that lack an explicit quadratic term are not considered to be QuadraticFunctionQ:
In[10]:= |
Out[10]= |
Wolfram Language 11.3 (March 2018) or above
This work is licensed under a Creative Commons Attribution 4.0 International License