Commit 16698687 authored by Sascha Niklas Schneiders's avatar Sascha Niklas Schneiders
Browse files

added atanh test

parent 04906a91
......@@ -99,6 +99,10 @@ public class OctaveFunctionTest extends AbstractSymtabTest {
public void testAtanCommand() throws IOException {
testMathCommand("atan");
}
@Test
public void testAtanhCommand() throws IOException {
testMathCommand("atanh");
}
@Test
public void testCosCommand() throws IOException {
......
#ifndef TEST_MATH_ATANHCOMMANDTEST
#define TEST_MATH_ATANHCOMMANDTEST
#ifndef M_PI
#define M_PI 3.14159265358979323846
#endif
#include "octave/oct.h"
#include "Helper.h"
#include "octave/builtin-defun-decls.h"
class test_math_atanhCommandTest{
public:
void init()
{
}
void execute()
{
double a = (Helper::getDoubleFromOctaveListFirstResult(Fatanh(Helper::convertToOctaveValueList(1/2 ),1)));
}
};
#endif
package test.math;
component AtanhCommandTest{
implementation Math{
Q a = atanh(0.5);
}
}
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment