Testing for Types

10 views
Skip to first unread message

brombo

unread,
Nov 2, 2018, 6:23:39 PM11/2/18
to sympy
If you want to test a sympy expression to see if it is a real scalar (combination real of numbers, functions, symbols, etc.) how would you do it?

Aaron Meurer

unread,
Nov 2, 2018, 6:38:46 PM11/2/18
to sy...@googlegroups.com
Are you looking for the is_real property?

Aaron Meurer
On Fri, Nov 2, 2018 at 4:23 PM brombo <abrom...@gmail.com> wrote:
>
> If you want to test a sympy expression to see if it is a real scalar (combination real of numbers, functions, symbols, etc.) how would you do it?
>
> --
> 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.
> To post to this group, send email to sy...@googlegroups.com.
> Visit this group at https://groups.google.com/group/sympy.
> To view this discussion on the web visit https://groups.google.com/d/msgid/sympy/8941ce89-df1d-4425-87cd-6ebf013e1572%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages