A function h
that I've written (it uses Reduce
) outputs a list of integer solutions of the form e.g.
(a0 = 1 && a1 = 2 && a2 = 3) || (a0 = 2 && a1 = 3 && a2 = 4) || ...
.
Some of the solutions however are of the form e.g. (a2 \[Element] Integers && a0 = 1 && a1 = 2 && -6 <= a2 <= 8)
. I'd like to seperate the solutions in the latter form into the former form, i.e. I would like to have the latter ones appearing as
(a0 = 1 && a1 = 2 && a2 = -6) || (a0 = 1 && a1 = 2 && a2 = -5) || ...
.
The reason I ask is because I am exporting the wholle list of solutions into a .csv file as follows:
solns = Table[h[b, a0, a1, 0, 12], 1]]
Export["solns.csv", solns]
When solutions are of the former form, the .csv output is manageable for me, but with the latter form it is too messy. Does anyone know a way to fix this?
Many thanks.