Page 1 of 1
Too complex expressions
Posted: Sun Jul 23, 2006 12:37 pm
by Psychophanta
Code: Select all
define.f ; <- comment this and then you'll get error
Wp=(I*W*(m1+m2)+m1*m2*l*(V1-V2+e*(V1-V2-W*l)))/(I*(m1+m2)+m1*m2*l*l)
Test yourself.
With PB4.0 these expressions run nice when floats or doubles, but it doesn't when running with integers.
Posted: Mon Jul 24, 2006 11:43 am
by venom
Maybe it could use the stack instead of registers?
Posted: Tue Jul 25, 2006 12:01 pm
by Psychophanta
venom wrote:Maybe it could use the stack instead of registers?
Nope, for integers PB uses mem positions, but not the stack.
Posted: Wed Jul 26, 2006 5:52 am
by venom
Actually I meant for the temporary storage.
Posted: Wed Jul 26, 2006 8:25 am
by Michael Vogel
Not the same thing, but also "too complex" for the PB Compiler...
a=Sqr(b<<5)
must be changed to something like
a=b<<5
a=sqr(a)
Posted: Thu Jul 27, 2006 6:38 am
by venom
Here on 4.0 it comes up not able to use << >> | & ! % on floats.