Expression Evaluation for Interval

22 views
Skip to first unread message

C FS

unread,
Aug 22, 2018, 8:31:37 AM8/22/18
to sympy
Hi,

I would like to evaluate an expression on an interval.

Substituting .subs the intervals in the expression ..
or ImageSet for a product set could be a way.

But couldn't figure it out yet.
ImageSet seems to be unevaluated and couldn't get .start, .end

set = ImageSet(Lambda((x, y, z), 2.0*y*z), Interval(-1, 1)*Interval(-1, 1)*Interval(-1, 1))
print([set.start, set.end])

Thanks!
Reply all
Reply to author
Forward
0 new messages