Got an idea for enhancing PureBasic? New command(s) you'd like to see?
-
Psychophanta
- Always Here

- Posts: 5153
- Joined: Wed Jun 11, 2003 9:33 pm
- Location: Anare
-
Contact:
Post
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.
Last edited by
Psychophanta on Tue Jul 25, 2006 12:04 pm, edited 1 time in total.
-
venom
- User

- Posts: 56
- Joined: Fri Jul 25, 2003 1:54 pm
- Location: Australia
Post
by venom »
Maybe it could use the stack instead of registers?
-
Psychophanta
- Always Here

- Posts: 5153
- Joined: Wed Jun 11, 2003 9:33 pm
- Location: Anare
-
Contact:
Post
by Psychophanta »
venom wrote:Maybe it could use the stack instead of registers?
Nope, for integers PB uses mem positions, but not the stack.
-
venom
- User

- Posts: 56
- Joined: Fri Jul 25, 2003 1:54 pm
- Location: Australia
Post
by venom »
Actually I meant for the temporary storage.
-
Michael Vogel
- Addict

- Posts: 2797
- Joined: Thu Feb 09, 2006 11:27 pm
-
Contact:
Post
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)
-
venom
- User

- Posts: 56
- Joined: Fri Jul 25, 2003 1:54 pm
- Location: Australia
Post
by venom »
Here on 4.0 it comes up not able to use << >> | & ! % on floats.