Search found 402 matches
Re: Squares
How would you convert the speed of sound into inches a second?? ... Divide MULTIPLY that by 5280 that would give you feet per second.. Divide MULTIPLY that by 12 that should give you inches per second... ... @Albert, that chinese pencil needs to be inverted. Pencils from India do not make that type...
- May 08, 2019 22:43
- Forum: Sources, Examples, Tips and Tricks
- Topic: Modular (Binary) Exponentiation example
- Replies: 4
- Views: 4854
Re: Modular (Binary) Exponentiation example
This is not a full (reasonable) explanation, but it is a start. positional notation: decimal: 70506 --> 7*10^4 + 0*10^3 + 5*10^2 + 0*10^1 + 6*10^0 7*10000 + 0*1000 + 8*100 + 0*10 + 6*1 == 70506 binary: 10101 --> 1*2^4 + 0*2^3 + 1*2^2 + 0*2^1 + 1*2^0 16 + 0 + 4 + 0 + 1 == 21 This is the SUM of the va...
- Feb 06, 2019 23:45
- Forum: General
- Topic: gmp 6.2.1 and mpfr 4.1.0
- Replies: 52
- Views: 34613
Re: gmp 6.1.2 and mpfr 4.0.2
Very much appreciated.
Thanks srvaldez.
Thanks srvaldez.
- Jan 28, 2019 14:44
- Forum: Windows
- Topic: Win10 -- Win7 ; same program big time diff
- Replies: 4
- Views: 1275
Win10 -- Win7 ; same program big time diff
I have a simple program: pseudocode: dim as longint n = 1000*1000*200 dim as longint array(n) dim as longint i,j for i = 1 to n-1 for j = i+1 to n ' checking separation points in a array against other separation points in the array next j next i The program evaluates points along a arithmetic progre...
- Nov 07, 2018 3:13
- Forum: General
- Topic: runtime error 12; segmentation violation(solved)
- Replies: 3
- Views: 831
Re: runtime error 12; segmentation violation(solved)
You forgot to count the memory occupied by the string descriptor of each array element (about 30 million of elements). Each string descriptor uses 3 integers (24 bytes on 32 bits). I did not know that it required that amount. My thought was that at most it would require only about 4 bytes additiona...
- Nov 06, 2018 19:43
- Forum: General
- Topic: runtime error 12; segmentation violation(solved)
- Replies: 3
- Views: 831
runtime error 12; segmentation violation(solved)
Why does this cause a segmentation fault, since the program allocates the space? The "metafile-xxx.txt" is alphanumeric data. The file has 25 to 30 million lines of data. Each line has 85 to 95 characters terminated with CR & LineFeed it is unsorted raw data. my attempt to read the fil...
- Oct 30, 2018 1:04
- Forum: Community Discussion
- Topic: Crescent Software products for DOS are now PD.
- Replies: 8
- Views: 2608
Re: Crescent Software products for DOS are now PD.
While a lot of this stuff may not be immediately usable to FreeBASIC users, it's interesting to look through. http://annex.retroarchive.org/crescent/index.html The libraries are usable with QuickBASIC, PDS 7.1, and VBDOS. There's a LOT of x86 assembly in there, which would make porting to FreeBASIC...
- Sep 17, 2018 16:51
- Forum: Documentation
- Topic: Wiki improvements
- Replies: 764
- Views: 220813
Re: Wiki improvements
A potential new article #17 ? About: How to Replace Any Recursion with Simple Iteration or Unlimited Iteration with its Own Stack, in FB I already wrote a thread around this topic. I could complete it and reword/synthesize all that in an article. Would some people be interested in such an article? ...
- Sep 17, 2018 16:12
- Forum: General
- Topic: 2d array initializer
- Replies: 1
- Views: 528
Re: 2d array initializer
Hello: Why can't I initialize a 2d array with one index of each dimension 'dim As Integer x(1 To 1, 1 To 1) = {{1,1}} 'does not work @sancho3 If the array x has one(1) Row, and one(1) column, that means you have ONLY 1 place for values. The first dimension determines the number of contained sets {}...
- Sep 17, 2018 15:49
- Forum: General
- Topic: type with constructor in namespace issue
- Replies: 31
- Views: 3323
Re: type with constructor in namespace issue
The following code prints 0 for n(1).a when UDT has a constructor. Without the UDT constructor n(1).a print 144. Why is my 144 getting lost in here? Namespace test Type udt As Integer a Declare Constructor End Type Constructor udt() End Constructor Static Shared As integer x = 12 Static Shared As u...
- Sep 05, 2018 13:58
- Forum: General
- Topic: FreeBASIC's PRNG #2
- Replies: 266
- Views: 23241
Re: FreeBASIC's PRNG #2
Very interesting.
I like the idea of a full 64 bit ulongint, instead of the 53 bit from a double.
I like the idea of a full 64 bit ulongint, instead of the 53 bit from a double.
- Jul 27, 2018 12:12
- Forum: Projects
- Topic: Arbitrarily Big Integer Routines
- Replies: 35
- Views: 14240
Re: Arbitrarily Big Integer Routines
Dear stephanbrunker Thanks for your quick reply. Please excuse my inadequate expressions. I'd like to enter numbers using "Input" command instead of the command line. Please teach me a sample program. Try this: #include "biginteger_v28.bas" '' <-- or what you have named it dim a...
- Apr 28, 2018 1:49
- Forum: Community Discussion
- Topic: Windows 10 updates
- Replies: 50
- Views: 8476
Re: Windows 10 updates
Really good advice.dodicat wrote:I just let it update itself now.
What the heck, I have grey hairs a plenty anyway, don't need any more.
I probably have the latest Creators ensconsed, good luck to it I say.
I don't have anything important on this computer, just as well eh!
- Apr 13, 2018 8:12
- Forum: Windows
- Topic: Unsupported function
- Replies: 13
- Views: 2785
Re: Unsupported function
THANK YOU.fxm wrote:KeyPgThreadCall → fxm [Added the advice to rather use ThreadCreate for the moment (which is it 100% safe)]deltarho[1859] wrote:It seems to me then that there is a case for removing ThreadCall from the docs or a least a reccomendation for it not to be used.
- Apr 09, 2018 23:27
- Forum: General
- Topic: DOUBLE's fractional digits to ULONGINT ?
- Replies: 20
- Views: 2333
Re: DOUBLE's fractional digits to ULONGINT ?
I want to be able to generate a specified range of random doubles - not just the [0 to 1) range that a standard RND() that generates doubles does - but a range like [0.283834 to 0.9875922245]. And I haven't been able to figure out how to do that using only doubles. The only way I could think of to ...