Hello,
I've checked this with a Bsource both two syntaxes work fine
b3 n001 0 v=(pow(-1,round((- 2 *((1)-1)/2+1)/- 1)))
b1 n002 0 v=(-1)**round((- 2 *(1 -1)/2+1)/- 1)
With a bsource using a function directive only one works
b3 n001 V=ch2(zz) neither V=ch3(zz) wrong
b3 n001 V=ch4(zz) good
.param a=2 b=1 zz=1
.func ch2(x)=(-1)**round((-a*(x-1)/2+1)/(-1)/b); ==> errorlog
(-1)**round((- 2 *(( 1 )-1)/2+1)/(-1)/ 1 «))»
.func ch3(x)=(-1)**round((-a*(x-1)/2+1)/-b) ; ==> errorlog
(-1)**round((- 2 *(( 1 )-1)/2+1)/- 1 «))»
.func ch4(x)=pow(-1,round((-a*(x-1)/2+1)/-b)) ; ==> good
I'am sure that two syntaxes were correct before because almost all
the files in the below section provide errors
Files > Examples > Educational > Power_Conditioning
Regards
Didier