Hello.
I was very happy to find this thread.
I'm using the eqs2matrix(eqs, syms, augment=False) function provided in this thread
earlier (see below), in order to take some equations I parsed and build a matrix I can
then provide to the function solve_linear_system(resEqs2Matrix, xdst, ydst) in order to
determine the unknowns xdst and ydst. (If interested see the script and input equations at
https://github.com/alexsusu/video-diff/tree/master/TransformationSpecAndCodeGen ).
The function eqs2matrix provided by Chris Smith works greatly on quite a few input
equation examples. Unfortunately, it is not able to work greatly (it does not do good
"simplification") with the following "system" of equations:
xsrc = (M11*xdst + M12*ydst + M13)/(M31*xdst + M32*ydst + M33)
ysrc = (M21*xdst + M22*ydst + M23)/(M31*xdst + M32*ydst + M33)
More exactly, I need to compute the xdst and ydst from M11..M33, xsrc and ysrc. But
the final result I obtain with the script is big and redundant. More exactly, eqs2matrix
does not take into consideration it could keep linear the expressions above if we multiply
with the respective denominators the equations. (If I do this manually, it is OK, but I
would like eqs2matrix to automatically do this "preprocessing" intelligently, since there
can be probably many non-trivial cases with denominators, etc).
I'd like to ask you if there is a better way to implement eqs2matrix to obtain
simplified results.
Thank you,
Alex
On 10/7/2015 6:25 PM, Adam Leeper wrote:
> Hi all-
>
> Interested party just wondering if there is any update on this.
>
> Cheers,
> Adam
>
> On Tuesday, June 24, 2014 at 10:01:56 AM UTC-7, Aaron Meurer wrote:
>
> A multidimensional version of collect() would probably be the best abstraction.
>
> Aaron Meurer
>
> <
http://groups.google.com/group/sympy>.
> <
https://groups.google.com/d/msgid/sympy/8fb2dae4-9f46-4c1b-b96f-83033278c27d%40googlegroups.com>.
> <
https://groups.google.com/d/optout>.
> <
http://groups.google.com/group/sympy>.
> >> > To view this discussion on the web visit
> >> >
> >> >
>
https://groups.google.com/d/msgid/sympy/a9c5f7ba-1c2d-4673-a8d4-b1253c150054%40googlegroups.com
> <
https://groups.google.com/d/msgid/sympy/a9c5f7ba-1c2d-4673-a8d4-b1253c150054%40googlegroups.com>.
> <
https://groups.google.com/d/optout>.
> >
> > --
> > You received this message because you are subscribed to the Google Groups
> > "sympy" group.
> > To unsubscribe from this group and stop receiving emails from it, send an
> > email to
sympy+un...@googlegroups.com <javascript:>.
> > To post to this group, send email to
sy...@googlegroups.com <javascript:>.
> <
http://groups.google.com/group/sympy>.
> > To view this discussion on the web visit
> >
>
https://groups.google.com/d/msgid/sympy/0b486c56-8a2b-48a5-a210-f49b6d39899f%40googlegroups.com
> <
https://groups.google.com/d/msgid/sympy/0b486c56-8a2b-48a5-a210-f49b6d39899f%40googlegroups.com>.
> <
https://groups.google.com/d/optout>.
>
> --
> You received this message because you are subscribed to the Google Groups "sympy" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to
>
sympy+un...@googlegroups.com <mailto:
sympy+un...@googlegroups.com>.
> To post to this group, send email to
sy...@googlegroups.com <mailto:
sy...@googlegroups.com>.
>
https://groups.google.com/d/msgid/sympy/9b453937-0394-4efc-8d7f-dc1a6a46267e%40googlegroups.com
> <
https://groups.google.com/d/msgid/sympy/9b453937-0394-4efc-8d7f-dc1a6a46267e%40googlegroups.com?utm_medium=email&utm_source=footer>.