📄 coth.java
字号:
package jmathlib.toolbox.trigonometric;
import jmathlib.core.functions.ExternalElementWiseFunction;
import jmathlib.core.tokens.numbertokens.DoubleNumberToken;
public class coth extends ExternalElementWiseFunction
{
public coth()
{
name = "coth";
}
/**trigonometric functions - calculate the hyperbolic cotangent of this token
* @param double value
* @return the result as a double array
*/
public double[] evaluateValue(double[] arg)
{
DoubleNumberToken num = new DoubleNumberToken();
tanh tanhF = new tanh();
double[] temp = tanhF.evaluateValue(arg);
double[] result = num.divide(new double[]{1,0}, temp);
return result;
}
}
/*
@GROUP
trigonometric
@SYNTAX
coth(value)
@DOC
.
@NOTES
@EXAMPLES
.
@SEE
sec, csc, csch, sech, cot
*/
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -