Search found 380 matches

by integer
Feb 05, 2020 16:08
Forum: General
Topic: Squares
Replies: 7626
Views: 456761

Re: Squares

@Albert. Nothing can go faster than the speed of light, ... . @richard, Everyone knows that. duh! The warp-coil shortens the distance so that it appears as if it's faster that light. It shrinks the distance to the orion nebula from a few light years to a few meters. The universe's internet archives...
by integer
Jan 18, 2020 6:31
Forum: Projects
Topic: prime numbers searcher in QB
Replies: 9
Views: 3076

Re: prime numbers searcher in QB

If you step n by 2 (as usual for primes by division), then it is slower for some strange reason, and of course misses out 2. If it steps by two, there is no call/return to the function -- it should be faster. But it is not. Over here, we have a bunch of donkeys and mules, who have no class what so ...
by integer
Jan 17, 2020 8:45
Forum: Projects
Topic: prime numbers searcher in QB
Replies: 9
Views: 3076

Re: prime numbers searcher in QB

@D.J.Peters
@fxm
@srvaldez

So, instead of a working class race horse on my desk, I have a mule.
Your response is very much appreciated.

Thank you.
by integer
Jan 15, 2020 17:52
Forum: Projects
Topic: prime numbers searcher in QB
Replies: 9
Views: 3076

HOW & WHY does cpp Optimize better than FreeBasic?

@admins: if the attached is too close to a copyright violation, PLEASE delete the code portion. at this website https://www.codeproject.com/Tips/5254588/Simple-Prime-Number-Calculator-Cplusplus Fabrizio Civetta stated that his cpp program can generate the primes less that 2million is about 6 second...
by integer
Jan 07, 2020 8:03
Forum: Projects
Topic: Gas64 (no more use of gcc, only gas) :-)
Replies: 110
Views: 20644

Re: Gas64 (no more use of gcc, only gas) :-)

SARG wrote:...
New version ir-gas and fb64_gas64 : http://users.freebasic-portal.de/sarg/fbc64_gas64.zip

@sarg: Thank you.
by integer
Oct 21, 2019 11:40
Forum: Beginners
Topic: Calculating intersection points
Replies: 8
Views: 451

Re: Calculating intersection points

seems as if the code the code was duplicated, compilation failed. removed duplicate. compiled & run. clarification: You seek to know the intersection: YellowSegment Line(x1,y1)-(x2,y2) with the whiteplane X-axis and YellowSegment Line(x1,y1)-(x2,y2) with the whiteplane Y-axis Thus: simple propor...
by integer
Aug 22, 2019 2:39
Forum: Projects
Topic: prime numbers searcher in QB
Replies: 9
Views: 3076

Re: prime numbers searcher in QB

Welcome to the site. I do not recall seeing the double divide before: the floating point & whole number division. That is a different approach. Most would use the shorter (quicker) mod instruction. Nice attempt. Keep up the good work. If speed is what you would like to see, several members have ...
by integer
Jun 11, 2019 4:29
Forum: Community Discussion
Topic: building fbc for Windows - for beginners by a beginner
Replies: 5
Views: 3765

Re: building fbc for Windows - for beginners by a beginner

THANK YOU
THANK YOU
THANK YOU

I'm tried many times to generate the compiler, but never success.
This will help.
by integer
Jun 11, 2019 4:21
Forum: General
Topic: Squares
Replies: 7626
Views: 456761

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...
by integer
May 08, 2019 22:43
Forum: Tips and Tricks
Topic: Modular (Binary) Exponentiation example
Replies: 4
Views: 3641

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...
by integer
Feb 06, 2019 23:45
Forum: General
Topic: gmp 6.2.0 and mpfr 4.0.2
Replies: 22
Views: 3423

Re: gmp 6.1.2 and mpfr 4.0.2

Very much appreciated.
Thanks srvaldez.
by integer
Jan 28, 2019 14:44
Forum: Windows
Topic: Win10 -- Win7 ; same program big time diff
Replies: 4
Views: 587

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...
by integer
Nov 07, 2018 3:13
Forum: General
Topic: runtime error 12; segmentation violation(solved)
Replies: 3
Views: 414

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...
by integer
Nov 06, 2018 19:43
Forum: General
Topic: runtime error 12; segmentation violation(solved)
Replies: 3
Views: 414

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...
by integer
Oct 30, 2018 1:04
Forum: Community Discussion
Topic: Crescent Software products for DOS are now PD.
Replies: 8
Views: 1140

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...

Go to advanced search