Code center > Bugs and fixes
Problem with 3.4 source code?
Botsareus:
Forgive me for a being a little off topic yet again , but this is interesting:
What is the "inverse square root" of a number , and how the hell are you using it in db?!
I think you do indeed have bit manupilation in vb, there is a convirt into bytes function, and then you use an erray loop and do your and xor not or whatever right using vb code itself.
What kind of bit manupulation are you talking about?!
Edit:
This is sad: vb indeed has no way to convirt numbers into a bit array unless you do it yourself ( I beleave convirt using hex() first )
However: the vb's and or xor not opperators actualy do bit compare, read the msdn on it , its at the bottom of each page.
Numsgil:
There's this really neat function that finds that inverse square root of a numkber FAST. And think about it. Usually you're dividing by the square root anyway. And if you need the actual square root, you just take the square times the inverse square root.
If you're interested in it, you can look in the DLL source code I included in 2.4, and see how I use it in the Common.bas file.
Ulciscor:
The inverse square root is the reciprocal of the square root of a number, isn't it?
The inverse square root of 4 is 4^(-0.5) or 1/(4)^0.5, which equals a half.
Numsgil:
Exactly. Turns out the inverse square root of a number is easier to calculate than the square root using certain numerical methods.
I had an article at one time explaining how the cryptic function worked, but I'm not sure what happened to it. I do know it was lifted from Quake 2 source.
Zelos:
how do I make so I can get it as exe file and use it? the source code I mean
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version