Ask Your Question

Revision history [back]

I don't know why this is happening, but here are some workarounds: one option is to replace

self._value(theta_1=item[0],mu_t=item[1],mu_j=item[1])

by

self._value(theta_1=item[0],mu_t=item[1],mu_j=item[1], e=e, pi=pi)

A second option: right after the line

self._value=self._value(**self.th1_dict)(**self.pre10_dict)(**self.constants).trig_reduce().simplify() #set dictionary values

add the line

self._value = self._value(**self.constants)

By the way, you can also replace the "constants" dictionary with

    self.constants={
        "pi": pi,
        "e": e
        }

to give better precision.