Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
Compute properties of a given trigonometric expression
ResourceFunction["TrigonometricProperties"][expr,x,y] gives an Association of properties of the trigonometric expression expr viewed as an equation in x and y. | |
ResourceFunction["TrigonometricProperties"][expr,x,y,prop] returns the specified property prop for the given trigonometric expression expr. |
"Amplitude" | amplitude of the given trigonometric expression |
"Midline" | midline of the given trigonometric expression |
"ReducedPhaseShift" | phase shift of the given trigonometric expression |
"Period" | period of the given trigonometric expression |
"Frequency" | frequency of the given trigonometric expression |
"Parity" | parity of the given trigonometric expression |
"MinValue" | minimum value of the expression |
"MaxValue" | maximum value of the expression |
"Intercepts" | association of the horizontal and vertical intercepts |
"FunctionMonotonicity" | association of where the expression is increasing and decreasing |
"FunctionConcavity" | association of where the expression is concave up and concave down |
"Plot" | plot of the given trigonometric expression |
All | association of information returning all allowed properties |
Compute the properties of a trigonometric function:
In[1]:= |
Out[1]= |
Return a specific trigonometric property:
In[2]:= |
Out[2]= |
Compute the amplitude:
In[3]:= |
Out[3]= |
If a function is not periodic, the function returns unevaluated:
In[4]:= |
Out[4]= |
If a function contains terms that are non-constant, non-trigonometric, the function returns unevaluated:
In[5]:= |
Out[5]= |
TrigonometricProperties does not work with inverse trigonometric functions:
In[6]:= |
Out[6]= |
Functions that do not reduce to a single trigonometric expression return unevaluated:
In[7]:= |
Out[7]= |
This work is licensed under a Creative Commons Attribution 4.0 International License