hi
Juliane
The version of the Quip engine that i’m using now is 2.2.1.1
i don’t know this version whether to support the expression what i said.
i had defined a fuction,following:
define function cos( double $x)returns AnyType
{
let $R1 := -0.1666665668e+0
let $R2 := 0.8333025139e-2
let $R3 := -0.1980741872e-3
let $R4 := 0.2601903036e-5
let $INVSPI := 0.31830988618379067154
let $HALFPI := 1.57079632679489661923
let $C1 := 3.140625
let $C2 := 9.67653589793e-4
let $x := abs($x)
let $n := (($x + $HALFPI) * $INVSPI) + 0.5
let $xn := double($n) - 0.5
let $sign := $n mod 2
let $f := ($x - $xn * $C1) - $xn * $C2
let $g := $f * $f
let $rg := ((($R4 * $g + $R3) * $g + $R2) * $g + $R1) * $g
let $result := $f + $f * $rg
if($sign=1) then -$result else $result
}
when execute it ,the Quip engine throw a err:
<?xml version="1.0" encoding="UTF-8" ?>
<quip:ExecutionError xmlns:quip=“http://namespaces.softwareag.com/tamino/quip/”>
quip:queryFileC:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\Query41948.tmp
</quip:queryFile>
quip:message<![CDATA[Error (36,1): return clause missing
actual token found: if
]]></quip:message>
</quip:ExecutionError>
Please help me how can i do it ?
Regards,
nicle.
#Tamino#webMethods#API-Management