Search found 554 matches

by owen
Feb 13, 2007 16:14
Forum: Projects
Topic: FB CAD
Replies: 160
Views: 82394

new stuff

added: "I" - Import drawing.dxf into the current drawing. Currenly this is limitted to only those files that were created with FB-Cad. "G" - Group: In order to delete, move or modifiy one or more lines, Position the mouse over an existing line and press "g" to add it to the group. "Del" - Delete gro...
by owen
Feb 11, 2007 18:17
Forum: Projects
Topic: FB CAD
Replies: 160
Views: 82394

rev1

added maddogs requirement to dim mouse params
ps. i was able to import drawing.dxf into autocad2k - i was kinda using ac2k to verify my math was correct.
by owen
Feb 11, 2007 15:11
Forum: Projects
Topic: FB CAD
Replies: 160
Views: 82394

For example:

Pressing Esc to end the program saves the drawing in file called "drawing.dxf" if you choose "Y" for yes. Screen Layout: The left side is used for drawing information, buttons and line color/layer selection. The right side is used for the drawing area. Functionality: While moving the mouse in the dr...
by owen
Feb 11, 2007 12:51
Forum: Projects
Topic: FB CAD
Replies: 160
Views: 82394

FB CAD

FB CAD by Owen Reese A cad program developed by freeBASIC programmers written in freeBASIC for the pupose of : 1. Learning how to code in freeBASIC 2. Creating a free basic cad program for all to use (freely) 3. Learning and understanding math 4. Inspiring Creativity. http://www.fbcadcam.com http://...
by owen
May 16, 2006 22:04
Forum: Projects
Topic: Implementing a new prime number algorithm
Replies: 4
Views: 2470

Ok - mpz_powm is the gmp function that allows me to use a large number as the exponent and does the mod at the same time. Thanks for sharing that with me.
by owen
May 15, 2006 1:50
Forum: Projects
Topic: Implementing a new prime number algorithm
Replies: 4
Views: 2470

not new

So I re-invented the wheel. Folks say this is Fermat's Little Theorem. Well that's Ok - It was fun to have discovered it on my own without knowing about Fermat. Even so, I would still like to investigate the idea of binary division as a project since using large exponents is not available in gmp yet...
by owen
May 14, 2006 3:50
Forum: Projects
Topic: Implementing a new prime number algorithm
Replies: 4
Views: 2470

Implementing a new prime number algorithm

I think a number is prime when M=2 for N = 3 to 11 step 2 M = (2^N) mod N if M = 2 then print N next simple code above and below prints 3,5,7 & 11 (not 9) and seems to list numbers that are prime up to 30 million range (using gmp) I also think that a number minus one (N-1) is prime when M=1 for ...
by owen
May 08, 2006 15:40
Forum: Beginners
Topic: 100% CPU usage, why?!
Replies: 10
Views: 2706

cpu usage

Is there way to monitor cpu usage?

If I can monitor the cpu usage then:
By being able to programmatically monitor the cpu usage, I will be able to programmatically throttle the cpu usage.
by owen
Apr 29, 2006 14:42
Forum: Libraries
Topic: GMP
Replies: 38
Views: 11893

installing gmp on winxp for use in fb

try this http://www.cs.ualberta.ca/~graphics/software/CGAL/CGAL-3.1/auxiliary/wingmp/gmp-4.1.3/libgmp-3.dll using this dll - i am now able to calculate numbers higher then 2^30mil ps. i was not able to make my own dll - worked on it for 3 days and never could get any to work... so just kept on searc...
by owen
Apr 28, 2006 19:46
Forum: Libraries
Topic: GMP
Replies: 38
Views: 11893

same error

ok - i get the same kind of error when i try to do something like take a large number and mod it with a not so large number... like: 2 ^30 mil mod 3. (this produces and error in xp-pro sp2 on a p3 with 256 meg ram) - the error indicates - sorry ms has dectected an error and wants to know if'n i woul...
by owen
Apr 28, 2006 4:03
Forum: Libraries
Topic: GMP
Replies: 38
Views: 11893

strange limit

Thank you for the help with gmp... gmp is very - very fast - bigint is nowhere close to the speed of gmp. I have a strange limitation to printing the string to file: my max number size is 2^1959352 (in other words 1959353 and up causes an error) mpz_init_set_si(@bignum, 2 ) mpz_pow_ui( @bignum, @big...
by owen
Apr 27, 2006 16:09
Forum: Libraries
Topic: GMP
Replies: 38
Views: 11893

examples using gmp in fb

I need simple examples in which I can learn how to use GMP in FB such as how to add, subtract, multiply, divide, take numbers to strings for saving on file, and how to take strings from file into GMP variables or pointers. My goal is to compare GMP to BigInt by testing the time to calculate 2^300000...
by owen
Apr 20, 2006 1:41
Forum: Libraries
Topic: big_int from string
Replies: 2
Views: 2377

big_int strings

Yes, it works great.
Thankyou very much.
by owen
Apr 19, 2006 11:10
Forum: Libraries
Topic: big_int from string
Replies: 2
Views: 2377

big_int from string

How to convert mystring$="1234" to a big_int #include once "big_int/big_int_full.bi" #ifndef NULL #define NULL 0 #endif dim as big_int ptr a a = big_int_create(1) dim as big_int_str ptr s s = big_int_str_create(1) 'big_int_from_str (byval s as big_int_str ptr, byval bas...

Go to advanced search