complex () + ()
Complex () + ()
The complex () + () block is a reporter block in the Extra Mathematics extension that reports the sum of the entered complex numbers (which use real and imaginary JSON pairs).
Workaround
This block can be worked around by summing the real and imaginary JSON values, and then using that as the value of the new real and imaginary parts:
define complex (num1) + (num2) set [real sum] to ((get [real] from (num1)::#0fbd8c) + (get [real] from (num2)::#0fbd8c)):: #0869c2 set [imaginary sum] to ((get [imaginary ] from (num1)::#0fbd8c) + (get [imaginary] from (num2)::#0fbd8c)):: #0869c2 return (join [{"real":] (get [real sum]:: #0869c2) [,"imaginary":] (get [imaginary sum]:: #0869c2) [}]::operators)::custom cap
The complex () + () custom reporter would then be used in place of the actual block.