--
You received this message because you are subscribed to the Google Groups "pySMT" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pysmt+unsubscribe@googlegroups.com.
To post to this group, send email to py...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pysmt/f0fec79f-0cf7-47bf-9f13-334f1fdd2ce1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Dear Sanjai,you need to transform the python 1.0 into a real constant representing 1.0. In pysmt this is done as follows:print Times(Real(1.0), f(1, 2))Cheers,Andrea
On Mon, Feb 12, 2018 at 5:12 PM, Sanjai Narain <sanjai...@gmail.com> wrote:
Hello, I would appreciate knowing how to avoid the error for the last call below. Thanks. -- Sanjaifrom pysmt.shortcuts import Symbol, Timesfrom pysmt.typing import REALdef f(x,y):return Symbol(("f_%s_%s" % (x,y)), REAL)# This prints fineprint Times(f(1, 2), f(3, 4))# But this gives an error ending in AttributeError: 'float' object has no attribute 'args'print Times(1.0, f(1, 2))
--
You received this message because you are subscribed to the Google Groups "pySMT" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pysmt+un...@googlegroups.com.
To post to this group, send email to py...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pysmt/f0fec79f-0cf7-47bf-9f13-334f1fdd2ce1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.