
!if $wims_read_parm!=sub
 good=!rawmath $(replygood$i)
 dd=!rawmath $(reply$i)
!endif

primetrans=
!if ' isin $good$dd
 good=!replace internal ' by djkz in $good
 dd=!replace internal ' by djkz in $dd
 primetrans=yes
!endif
mres=!exec maxima print($good);\
	print($dd);\
	print(ratsimp(trigreduce(trigsimp($good-($dd)))));
!if $primetrans=yes
 mres=!replace internal djkz by ' in $mres
!endif
!distribute lines $mres into t1,t2,t3

m_reply$i=$t2
!if $wims_read_parm=nocompare
 !if $t2=$empty or $t3=$empty
  test=NaN
 !endif
 !exit
!endif

!if $t1=$empty
 Test=bad $i
 !exit
!endif
!if $t2=$empty or $t3=$empty
 test=NaN
 !exit
!endif

!if $t3=0 or $t3=0.0
 diareply$i=good
 !advance freegot
!else
 diareply$i=bad
!endif

