Add arccsc.

This commit is contained in:
Arthur Drobot 2017-08-09 15:57:02 -07:00
parent efe76a6fdc
commit 1f0e6a7ce4
1 changed files with 17 additions and 0 deletions

View File

@ -500,6 +500,22 @@ public class StandardPlugin extends Plugin {
}
};
/**
* The arccsc function.
*/
public final Function functionArccsc = new Function() {
@Override
protected boolean matchesParams(NumberInterface[] params) {
return params.length == 1 && FUNCTION_ABS.apply(params[0]).compareTo(fromInt(params[0].getClass(), 1)) >= 0;
}
@Override
protected NumberInterface applyInternal(NumberInterface[] params) {
NumberInterface[] reciprocalParamArr = {fromInt(params[0].getClass(), 1).divide(params[0])};
return functionArcsin.apply(reciprocalParamArr);
}
};
public StandardPlugin(PluginManager manager) {
super(manager);
}
@ -619,6 +635,7 @@ public class StandardPlugin extends Plugin {
registerFunction("cot", functionCot);
registerFunction("arcsin", functionArcsin);
registerFunction("arccos", functionArccos);
registerFunction("arccsc", functionArccsc);
}
@Override