Try using Determinant from sympy.matrices.expressions.

Aaron Meurer

On Sun, May 10, 2015 at 12:06 AM, Jason Moore <[email protected]> wrote:
> You can subclass the LatexPrinter and override this method:
> https://github.com/sympy/sympy/blob/master/sympy/printing/latex.py#L1299 to
> create your custom printer.
>
>
> Jason
> moorepants.info
> +01 530-601-9791
>
> On Sat, May 9, 2015 at 7:19 PM, PG <[email protected]> wrote:
>>
>> Hi,
>>
>> If I have
>>
>> m = Matrix([ [ 1, 2 ], [ 3, 4 ] ])
>>
>> how can I latex m so it is printed as a determinant:
>>
>> \begin{vmatrix}
>> 1 & 2\\
>> 3 & 4
>> \end{vmatrix}
>>
>> Many thanks in advance,
>>
>> PG
>>
>> --
>> 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 [email protected].
>> To post to this group, send email to [email protected].
>> Visit this group at http://groups.google.com/group/sympy.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/sympy/46633e2a-d020-48b8-b5c4-1441b474052f%40googlegroups.com.
>> For more options, visit 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 [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/sympy.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/sympy/CAP7f1AjQu4%2Bxsv8JPWae2kQWRzJ-B0bSPX84DSyyopqQTrwJzw%40mail.gmail.com.
>
> For more options, visit 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 [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sympy.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sympy/CAKgW%3D6Lpahi8EU5-UPAYS%2BAVMcYWGTvKJ6cvq-u8eYahO5O1%2Bg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to