From: J D <jam...@ho...> - 2001-09-22 22:12:00
|
>Can anyone send back with a solution to the problem contained in >erpFormula2 referenced below?? It obviously stems from the "^" operator as >erpFormula1 is identical except for the use of math.log10 versus "^". The >runtime error I am getting is: > >TypeError: __xor__nor__rxor__ defined for these operands > >PythonInterpreter interp = new PythonInterpreter(); >interp.set( "math", new ExtraMath() ); >interp.exec( erpFormula2); > >String erpFormula1 = ("resultant = 10 * math.log10( TransmitPower)"); >String erpFormula2 = ("resultant = 10 ^( TransmitPower )"); > >Also as I am new to jython, what is the deal with the __xxxx__ method >calls?? I tried to subclass a PyFloat object to a java Double object using >something like: > >Double newDouble = result.__tojava__( new Double( 0.0 ) ) without success. > >The leading and trailing underscores are a bit different. > >thanks to any and all who respond....Jim. > > > > _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp |