Commit 68369f1d authored by Bas Lijnse's avatar Bas Lijnse

Added missing trigonometrical functions to clean flavour

parent f2e6451a
......@@ -18,9 +18,12 @@ cleanFlavour = fromFlavourRep {
{sapl_fun="powI",arity=2,data_cons=Nothing,ext_fun=Just "_pow",inline_exp=Just "Math.pow(:!1:,:!2:)"},
{sapl_fun="powR",arity=2,data_cons=Nothing,ext_fun=Just "_pow",inline_exp=Just "Math.pow(:!1:,:!2:)"},
{sapl_fun="sqrt",arity=1,data_cons=Nothing,ext_fun=Just "_sqrt",inline_exp=Just "Math.sqrt(:!1:)"},
{sapl_fun="tan",arity=1,data_cons=Nothing,ext_fun=Just "_tan",inline_exp=Just "Math.tan(:!1:)"},
{sapl_fun="atan",arity=1,data_cons=Nothing,ext_fun=Just "_atan",inline_exp=Just "Math.atan(:!1:)"},
{sapl_fun="sin",arity=1,data_cons=Nothing,ext_fun=Just "_sin",inline_exp=Just "Math.sin(:!1:)"},
{sapl_fun="asin",arity=1,data_cons=Nothing,ext_fun=Just "_asin",inline_exp=Just "Math.asin(:!1:)"},
{sapl_fun="cos",arity=1,data_cons=Nothing,ext_fun=Just "_cos",inline_exp=Just "Math.cos(:!1:)"},
{sapl_fun="acos",arity=1,data_cons=Nothing,ext_fun=Just "_acos",inline_exp=Just "Math.acos(:!1:)"},
{sapl_fun="neg",arity=1,data_cons=Nothing,ext_fun=Just "_neg",inline_exp=Just ":!1: * -1"},
{sapl_fun="negR",arity=1,data_cons=Nothing,ext_fun=Just "_neg",inline_exp=Just ":!1: * -1"},
{sapl_fun="negI",arity=1,data_cons=Nothing,ext_fun=Just "_neg",inline_exp=Just ":!1: * -1"},
......
......@@ -74,6 +74,12 @@
"ext_fun":"_sqrt",
"inline_exp":"Math.sqrt(:!1:)"
},
{
"sapl_fun":"tan",
"arity":1,
"ext_fun":"_tan",
"inline_exp":"Math.tan(:!1:)"
},
{
"sapl_fun":"atan",
"arity":1,
......@@ -86,11 +92,23 @@
"ext_fun":"_sin",
"inline_exp":"Math.sin(:!1:)"
},
{
"sapl_fun":"asin",
"arity":1,
"ext_fun":"_asin",
"inline_exp":"Math.asin(:!1:)"
},
{
"sapl_fun":"cos",
"arity":1,
"ext_fun":"_cos",
"inline_exp":"Math.cos(:!1:)"
},
{
"sapl_fun":"acos",
"arity":1,
"ext_fun":"_acos",
"inline_exp":"Math.acos(:!1:)"
},
{
"sapl_fun":"neg",
......
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