Class TrigToExp
- java.lang.Object
-
- org.matheclipse.core.eval.interfaces.AbstractEvaluator
-
- org.matheclipse.core.reflection.system.TrigToExp
-
- All Implemented Interfaces:
IFunctionEvaluator
,IEvaluator
public class TrigToExp extends AbstractEvaluator
TrigToExp(expr)
converts trigonometric functions in
expr
to exponentials.Examples
>> TrigToExp(Cos(x)) 1/2*E^(I*x)+1/2*E^(-I*x)
-
-
Field Summary
-
Fields inherited from interface org.matheclipse.core.eval.interfaces.IFunctionEvaluator
ARGS_0_0, ARGS_0_1, ARGS_0_1_0, ARGS_0_2, ARGS_0_2_0, ARGS_0_3, ARGS_0_INFINITY, ARGS_1_1, ARGS_1_2, ARGS_1_2_0, ARGS_1_2_1, ARGS_1_2_2, ARGS_1_3, ARGS_1_3_0, ARGS_1_3_1, ARGS_1_3_2, ARGS_1_4, ARGS_1_4_0, ARGS_1_4_1, ARGS_1_4_2, ARGS_1_5, ARGS_1_5_1, ARGS_1_INFINITY, ARGS_1_INFINITY_0, ARGS_1_INFINITY_1, ARGS_2_2, ARGS_2_2_1, ARGS_2_3, ARGS_2_3_0, ARGS_2_3_1, ARGS_2_3_2, ARGS_2_4, ARGS_2_4_1, ARGS_2_4_2, ARGS_2_INFINITY, ARGS_3_3, ARGS_3_4, ARGS_3_5, ARGS_3_6, ARGS_3_INFINITY, ARGS_4_4, ARGS_5_5, ARGS_6_6
-
-
Constructor Summary
Constructors Constructor Description TrigToExp()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IExpr
evaluate(IAST ast, EvalEngine engine)
Exponential definitions for trigonometric functionsint[]
expectedArgSize(IAST ast)
At index 0 return the "from", at index 1 return the "to" number of arguments, which are expected by this function.void
setUp(ISymbol newSymbol)
Evaluate built-in rules and define Attributes for a function.int
status()
The implementation status of this symbol or function.-
Methods inherited from class org.matheclipse.core.eval.interfaces.AbstractEvaluator
defaultReturn, evalCatched, numericEval
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.matheclipse.core.interfaces.IEvaluator
await, setOptions
-
Methods inherited from interface org.matheclipse.core.eval.interfaces.IFunctionEvaluator
getOptionSymbols, numericFunction, print
-
-
-
-
Method Detail
-
evaluate
public IExpr evaluate(IAST ast, EvalEngine engine)
Exponential definitions for trigonometric functionsSee List of trigonometric identities - Exponential definitions,
Hyperbolic function- Specified by:
evaluate
in interfaceIFunctionEvaluator
- Overrides:
evaluate
in classAbstractEvaluator
- Parameters:
ast
- the abstract syntax tree (AST) which should be evaluatedengine
- the users current evaluation engine- Returns:
- the evaluated object or
F#NIL
, if evaluation isn't possible - See Also:
Validate
-
status
public int status()
Description copied from interface:IFunctionEvaluator
The implementation status of this symbol or function.- ✅ -
ImplementationStatus.FULL_SUPPORT
the symbol / function is supported. Note that this doesn't mean that every symbolic evaluation is supported. - ☑ -
ImplementationStatus.PARTIAL_SUPPORT
the symbol / function is partially implemented and might not support most basic features of the element - ❌ -
ImplementationStatus.NO_SUPPORT
the symbol / function is currently not supported - ⚠ -
ImplementationStatus.DEPRECATED
the symbol / function is deprecated and will not be further improved - 🧪 -
ImplementationStatus.EXPERIMENTAL
the symbol / function is an experimental implementation. It may not fully behave as expected.
- ✅ -
-
expectedArgSize
public int[] expectedArgSize(IAST ast)
Description copied from interface:IFunctionEvaluator
At index 0 return the "from", at index 1 return the "to" number of arguments, which are expected by this function. If the returnedint
array has length 3, the function allows headers unequal to the built-in function name (i.e. the function can be in "operator form").- Parameters:
ast
- the abstract syntax tree (AST) those arguments should be checked- Returns:
null
if no range for the number of arguments is specified.
-
setUp
public void setUp(ISymbol newSymbol)
Description copied from class:AbstractEvaluator
Evaluate built-in rules and define Attributes for a function.- Specified by:
setUp
in interfaceIEvaluator
- Overrides:
setUp
in classAbstractEvaluator
- Parameters:
newSymbol
- the symbol which should be set up
-
-