It's not possible yet. There have been plans to implement this sort of
thing but it hasn't happened yet.

Aaron Meurer

On Thu, Apr 19, 2018 at 4:49 PM, Robert Semenoff
<[email protected]> wrote:
> I think the answer is no... it is a constraint solver like pyomo that maybe
> is what you want....
> But  for sympy to allow type attributes like real etc, it must have some
> kind of constraint solver built in, so this is an interesting question.
>
> On Tue, Apr 17, 2018, 10:46 AM Shelby Hui-Jun Chen <[email protected]>
> wrote:
>>
>> Dear all:
>>
>>
>> I'm wondering is it possible for me to define the range of my parameters
>> when I defining symbols?
>>
>> For example, I know I can
>> >>> x = symbols('x', positive = True)
>>
>> But does it possible that I can restrict the domain of x into, say x is in
>> the interval (0,1)?
>>
>>
>> Thank you!
>>
>> Sincerely,
>>
>> Shelby Chen
>>
>> --
>> 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 https://groups.google.com/group/sympy.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/sympy/b57868c4-c591-4151-9f50-c51b112cabe8%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 https://groups.google.com/group/sympy.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/sympy/CAJABt-GngftrY8V%2B1pf6M%3D_N6imN5Ksi1FXxwQVS20KtdtD8OQ%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 https://groups.google.com/group/sympy.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sympy/CAKgW%3D6K3WC11YU%2BnZy1OgqzN9guZJ7B5tky_dYuk%2Bnff25ybQA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to