📄 radtograd.java
字号:
package jmathlib.toolbox.trigonometric;
import jmathlib.core.functions.ExternalElementWiseFunction;
public class radtograd extends ExternalElementWiseFunction
{
public radtograd()
{
name = "radtograd";
}
/**converts value from radians to gradients
@param operads[0] = value to convert
@return the converted value*/
public double[] evaluateValue(double[] arg)
{
double[] result = new double[2];
result[REAL] = arg[REAL] * 200 / Math.PI;
return result;
}
}
/*
@GROUP
trigonometric
@SYNTAX
gradients = radtograd(radians)
@DOC
converts the angle from radians to gradients.
@NOTES
@EXAMPLES
radtograd(3.141592653589793) = 200
radtograd(1.570796326794896) = 100
@SEE
degtograd, radtograd, degtorad, radtodeg
*/
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -