ATAN2 ?
And would you implement it in the next version ?Fred wrote:Yes.
MFG
WolfgangS
WolfgangS' projects http://www.schliess.net
Quotation of the month:
<p3hicy>oder ich hol mir so eine geile aus asien
<p3hicy>die ständig poppen will
<p3hicy>'n brötchen pro tag reicht doch
<p3hicy>die essen eh' nich so viel
Quotation of the month:
<p3hicy>oder ich hol mir so eine geile aus asien
<p3hicy>die ständig poppen will
<p3hicy>'n brötchen pro tag reicht doch
<p3hicy>die essen eh' nich so viel
-
- User
- Posts: 48
- Joined: Tue Oct 07, 2003 3:10 pm
Just use ASM. The FPU already does ATAN.
I don't know the syntax required for PureBasic in-line ASM but I'm sure someone will show you how to make it work..
I don't know the syntax required for PureBasic in-line ASM but I'm sure someone will show you how to make it work..
Code: Select all
fld y ;Get y onto the FPU stack
fld x ;Get x onto the FPU stack
fpatan ;Get the ATAN(y/x), Put result in ST(1) then pop the stack
fstp res ;store the result in res and pop the stack
- Psychophanta
- Always Here
- Posts: 5153
- Joined: Wed Jun 11, 2003 9:33 pm
- Location: Anare
- Contact:
Yes, no needed more than the basic math functions, else PB would be full of it (Cosh(), Sinh(), Tanh(), Atan2(), ln(), etc.), and that should be too much ugly for a PURE language. 
If PB 4 allow macros you can do all those functions in ASM (or get it from this forum) and save it in a good place for your programs.
EDIT: I'm dying to work with macros to build my own module sources.
BTW, ElChoni, are you Tailbite Expert? Shouldn't be better to write Tailbite author?

If PB 4 allow macros you can do all those functions in ASM (or get it from this forum) and save it in a good place for your programs.

EDIT: I'm dying to work with macros to build my own module sources.
BTW, ElChoni, are you Tailbite Expert? Shouldn't be better to write Tailbite author?
why not adding it as keyword when its just only some asm lines? i dont need such a command yet but even blitz basic has inbuild Tan2 support... (looking forward...)
[Edit:]
same for Pi() , Sgn() , MOD, NOT, XOR
[Edit:]
same for Pi() , Sgn() , MOD, NOT, XOR

va!n aka Thorsten
Intel i7-980X Extreme Edition, 12 GB DDR3, Radeon 5870 2GB, Windows7 x64,
Intel i7-980X Extreme Edition, 12 GB DDR3, Radeon 5870 2GB, Windows7 x64,