Search found 5620 matches

by dodicat
May 08, 2010 22:42
Forum: General
Topic: Circles
Replies: 1988
Views: 138889

@Dodicat I got it working to 1,000,000 so far but only if the center digits are zero, Hi Albert Where f=the first digit and l=the last digit The remainder term is 10*(f-l)^2 this is actually 10*(f^2 -2*f*l +l^2) So with a number with only the first and last digit and the rest zeros, it pans out o.k...
by dodicat
May 07, 2010 23:41
Forum: General
Topic: Circles
Replies: 1988
Views: 138889

@Dodicat What are the british electing today is it the "House of Commons" or what??? just interested slightly. I thought England's govt was all selected by the monarchy. Hi Albert Yes, the elections are for a new prime minister (house of commons) At the moment there is a "hung parliament", the cons...
by dodicat
May 07, 2010 2:25
Forum: General
Topic: Circles
Replies: 1988
Views: 138889

@Dodicat Dodicat; can you turn this into a "Boboule" the popular Linux ScreenSaver??? "Boboule" doesn't come with source code its not open-source. Hi Albert I'll fire up my Linux installation and have a look at Boboule. In the meantime, you were looking for a simple sound sub, so you can meditate, ...
by dodicat
May 06, 2010 1:40
Forum: General
Topic: Graphics in Freebasic
Replies: 17
Views: 1245

Re: Graphics in Freebasic

Hi all, How do I handle graphics in Freebasic? Thanks Andy Hi This is the closest I can manage with just FreeBASIC. Ive posted this font thing before under tips and tricks, with instructions, but it's only a bit of fun, not meant for till readouts or whatever. declare sub paintstring(x as doubl...
by dodicat
May 06, 2010 0:04
Forum: General
Topic: Circles
Replies: 1988
Views: 138889

A puzzle. Think of a flexible rope or hose with a fixed circular cross section. How could we specify and tie an arbitrary knot in it and picture the result with FB. Can that knot be pulled tight and then extract the coordinates of the rope's centre line. Hi Richard and Albert and others I should be...
by dodicat
May 02, 2010 17:45
Forum: General
Topic: Circles
Replies: 1988
Views: 138889

Hi Albert Yes, it's a bluebell, in a couple of weeks the Scottish woods will be full of them. I'm getting started on bignumbers again, soon. Here's Richard's shapes set loose in hyperspace with what looks like bits of string theory holding them together, just and no more. declare Sub mv(m1(&...
by dodicat
Apr 29, 2010 23:05
Forum: Community Discussion
Topic: Math Plugin for Forum
Replies: 9
Views: 1313

Re: Math Plugin for Forum

I'd be interested in seeing the FreeBASIC forum support a quality math plugin, so we could easily share mathematical markup. Do any free, compatible plugins exist? Sorry, I don't quite understand, compatible plugin? mathematical markup? Do you mean some Maths in a library written in freebasic, Math...
by dodicat
Apr 29, 2010 10:52
Forum: General
Topic: Circles
Replies: 1988
Views: 138889

No, Albert It's one of the Queen Mary's props, and she wants to be set free. Screen 19 declare Sub rotate(Byval pivot_x As Double,_ 'turns about this point Byval pivot_y As Double,_ Byval first_x As Double,_ 'centre for circles Byval first_y As Double,_ Byval second_x As Double, _ 'radius for ci...
by dodicat
Apr 29, 2010 0:01
Forum: General
Topic: [SOLVED]Default Function/Sub Override
Replies: 7
Views: 1130

For splitting strings, there have been several different versions posted over the years http://www.freebasic.net/forum/viewtopic.php?t=13975 http://www.freebasic.net/forum/viewtopic.php?t=13675 http://www.freebasic.net/forum/viewtopic.php?t=13519 http://www.freebasic.net/forum/viewtopic.php?t=10524...
by dodicat
Apr 27, 2010 21:10
Forum: General
Topic: Circles
Replies: 1988
Views: 138889

@dodicat Thanks for the primes code its faster than anything i could come up with! What is a prime factor????? since primes only have 2 factors; 1 and themselves.????? Hi Albert Here are some numbers and their prime factors: 723456789>> 3, 11, 23, 953171, 723456790>> 2, 5, 7, 659, 15683, 723456791>...
by dodicat
Apr 27, 2010 17:46
Forum: General
Topic: ASCII Diagonal Lines Troubleshoot
Replies: 8
Views: 1951

@ Counting Pine I thought a single character only was required. Voltages code shows a mass of lines, yours, multiple X's. I thought Uberdevel just wants a single line of characters. Do you Uberdevel? Sub drawpoints(x1 As Integer,y1 As Integer,x2 As Integer,y2 As Integer,N As Integer) N=N-1 I...
by dodicat
Apr 27, 2010 0:42
Forum: General
Topic: ASCII Diagonal Lines Troubleshoot
Replies: 8
Views: 1951

Hi Would this do the job? sub drawpoints(x1 as integer,y1 as integer,x2 as integer,y2 as integer,N as integer) N=N-1 if x2=x1 then x2=x1+1 if x2<x1 then swap x2,x1:swap y2,y1 dim steps as single dim as single yval=y1,diffx diffx=abs(x2-x1)/(N) dim as single main_ratio=abs(...
by dodicat
Apr 26, 2010 20:13
Forum: General
Topic: Circles
Replies: 1988
Views: 138889

@dodicat 949=13*73 979=11*89 989=23*43 the above numbers are all multiple of primes,11,13,43 are prime. Hi Albert All numbers(integers) are multiples of primes unless they are prime themselves - (The fundemental thereom of Arithmetic), and 949=13*73 --- 13 and 73 are the ONLY prime factors that giv...
by dodicat
Apr 26, 2010 18:04
Forum: General
Topic: Circles
Replies: 1988
Views: 138889

Re: Prime number generator

Hi Albert Yiv got some non-primes as well Albert 949=13*73 979=11*89 989=23*43 I see these at the tail end of each of your three code groups. I've set fbprimes.txt to 50,000 by running my prime generator (the one with crt.bi) to 50,000 Ive coded a little reader of fbprimes.txt, to examine various th...
by dodicat
Apr 25, 2010 20:40
Forum: General
Topic: Circles
Replies: 1988
Views: 138889

Hi Albert Since you are messing about with prime numbers, here is a "sieve" to get you all primes up to a number you want to the limit of LONG. It will write the primes to a text file (fbprimes.txt), which you can open with wordpad or notepad. If you uncomment line 32, then it will print to the scre...

Go to advanced search