In Python, exponentiation can be done with the ** operand (2 ** 3 returns 8). I don't know whether that is different in any way from pow(2, 3), but help(pow) says it's the same.
On Tue, Jul 21, 2009 at 11:59, Paulo Silva <[email protected]> wrote: > http://pastebin.com/f5b433a3e > thank you! :) > > On 7/21/09, Zack Schilling <[email protected]> wrote: > > ypos2=(256.0/(1.0+(pow(2.0,(4.0-(ypos/64.0))))))*2.0 > > > > -Zack > > > > On Jul 21, 2009, at 10:30 AM, Paulo Silva wrote: > > > >> Hi! > >> i'm getting 'TypeError: unsupported operand type(s) for ^: 'float' and > >> 'float'' when trying to start simulating an Axelay background scroll > >> > >> http://pastebin.com/f48d2045 > >> > >> (01.png used can be anything) > >> > >> do someone know how can i replace '^', or which wiser calculation i > >> must do? > >> thanks > > > > >
