Omnimaga: The Coders Of Tomorrow
Welcome, Guest. Please login or register.
 
Omnimaga: The Coders Of Tomorrow
25 May, 2013, 19:39:41 *
Welcome, Guest. Please login or register.

Login with username, password and session length
 
   home   news downloads projects tutorials misc forums rules new posts irc about Login Register  
+-OmnomIRC

You must Register, be logged in and have at least 40 posts to use this shout-box! If it still doesn't show up afterward, it might be that OmnomIRC is disabled for your group or under maintenance.

Note: You can also use an IRC client like mIRC, X-Chat or Mibbit to connect to an EFnet server and #omnimaga.

Pages: 1 [2] 3 4 5   Go Down
  Print  
Author Topic: BigNumNum Cruncher -  (Read 3211 times) Bookmark and Share
0 Members and 1 Guest are viewing this topic.
sammyMaX
LV4 Regular (Next: 200)
****
Offline Offline

Last Login: 19 May, 2013, 00:12:41
Date Registered: 18 April, 2011, 18:01:37
Posts: 192


Topic starter
Total Post Ratings: +7

View Profile
« Reply #15 on: 31 August, 2011, 17:42:36 »
0

Many of the math functions are done (actually quite easy to program, as long as you're not SUPER optimizing) and I am around 60% done with input processing (turning string into the data type my functions take in) and haven't done output processing yet (data type returned from functions into string) Once I'm done with input processing, a beta should come out soon, (output processing isn't as bad) but programming input processing is a PITA. I can see why Cabamap used RPN, it is a lot easier to work with.
Logged


Are you wondering who Sammy is? My avatar is Sammy.
   
sammyMaX
LV4 Regular (Next: 200)
****
Offline Offline

Last Login: 19 May, 2013, 00:12:41
Date Registered: 18 April, 2011, 18:01:37
Posts: 192


Topic starter
Total Post Ratings: +7

View Profile
« Reply #16 on: 02 September, 2011, 23:11:57 »
0

OMG OMG OMG OMG OMG OMG OMG OMG OMG OMG OMG OMG OMG OMG OMG OMG OMG OMG OMG OMG OMG OMG OMG OMG OMG OMG OMG OMG OMG OMG OMG OMG OMG OMG OMG OMG OMG OMG OMG OMG OMG OMG OMG OMG OMG OMG OMG OMG OMG OMG OMG OMG OMG OMG OMG OMG OMG OMG OMG OMG OMG OMG OMG OMG OMG OMG!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

LOL  Cool

Anyways, it can now (usually) add. It is still very unstable though, and it is very hard to type in input. I have a solution in mind, and if it works I will post it. (From what I've experienced, others have the same issue)


* screen.jpg (12.99 KB, 320x240 - viewed 197 times.)
Logged


Are you wondering who Sammy is? My avatar is Sammy.
   
Hayleia
Programming Absol
LV11 Super Veteran (Next: 3000)
***********
Offline Offline

Last Login: Today at 19:30:26
Date Registered: 01 June, 2011, 20:12:47
Location: ud-ud ?
Posts: 2057


Total Post Ratings: +256

View Profile
« Reply #17 on: 03 September, 2011, 08:21:58 »
0

Great work !!!
* Hayleia is sad to not have an Nspire Cry
[offtopic] You also can go to Graphmastur's Power of two posters only topic, since you have 64 posts [/offtopic]
Logged





Spoiler for what I am according to...:
me: useless
Pokemon Test: an Absol
turiqwalrus: an eggplant
p2: A HUMAN BEING !
Blackpilar and p2: iplantonlyplantwantplanttoplantknowplantifplantyouplantareplantaplantboyplantorplantaplantgirlplant
click here to know where you got your last +1s
Chockosta
LV6 Super Member (Next: 500)
******
Online Online

Gender: Male
Last Login: Today at 19:34:35
Date Registered: 03 June, 2011, 20:14:17
Location: France
Posts: 440


Total Post Ratings: +159

View Profile
« Reply #18 on: 03 September, 2011, 10:29:28 »
0

Well done !

This is a nice program... Keep up the good work !
Logged

Chockosta (Loic Pujet) - Sorry for my poor English...
Look at my projects :
in C code : Periodic table, Space invaders, Fall, Snake, Minesweeper, nCraft (WIP)
in Lua : Snake, Space invaders, Bobby Carrot, Minesweeper, Mazes 3D, nSpaint, FreeCell, Tiny3D-Viewer, CubeField, Gravity Guy
sammyMaX
LV4 Regular (Next: 200)
****
Offline Offline

Last Login: 19 May, 2013, 00:12:41
Date Registered: 18 April, 2011, 18:01:37
Posts: 192


Topic starter
Total Post Ratings: +7

View Profile
« Reply #19 on: 03 September, 2011, 16:23:11 »
0

Thanks!
@Hayleia: before posting this (when I had 64 posts) I still got "An Error Has Occurred!" page. Sad
Logged


Are you wondering who Sammy is? My avatar is Sammy.
   
Hayleia
Programming Absol
LV11 Super Veteran (Next: 3000)
***********
Offline Offline

Last Login: Today at 19:30:26
Date Registered: 01 June, 2011, 20:12:47
Location: ud-ud ?
Posts: 2057


Total Post Ratings: +256

View Profile
« Reply #20 on: 03 September, 2011, 16:31:05 »
0

I still got "An Error Has Occurred!" page. Sad
Huh? Maybe it is because it is in Spam, you may need 100 posts, I don't know.
You'll go when you have 128 posts Cheesy
Logged





Spoiler for what I am according to...:
me: useless
Pokemon Test: an Absol
turiqwalrus: an eggplant
p2: A HUMAN BEING !
Blackpilar and p2: iplantonlyplantwantplanttoplantknowplantifplantyouplantareplantaplantboyplantorplantaplantgirlplant
click here to know where you got your last +1s
sammyMaX
LV4 Regular (Next: 200)
****
Offline Offline

Last Login: 19 May, 2013, 00:12:41
Date Registered: 18 April, 2011, 18:01:37
Posts: 192


Topic starter
Total Post Ratings: +7

View Profile
« Reply #21 on: 03 September, 2011, 16:38:57 »
0

I can't wait Smiley
Logged


Are you wondering who Sammy is? My avatar is Sammy.
   
sammyMaX
LV4 Regular (Next: 200)
****
Offline Offline

Last Login: 19 May, 2013, 00:12:41
Date Registered: 18 April, 2011, 18:01:37
Posts: 192


Topic starter
Total Post Ratings: +7

View Profile
« Reply #22 on: 03 September, 2011, 22:59:23 »
0

I'm having a problem creating (certain) arrays. I use calloc(x, sizeof(int)). No matter what x is, the pointer returned always points to an array of one integer. More info (and a screenshot of the problem) here, at the bottom of the page: http://www.omnimaga.org/index.php?topic=9321.30
« Last Edit: 03 September, 2011, 22:59:49 by sammyMaX » Logged


Are you wondering who Sammy is? My avatar is Sammy.
   
sammyMaX
LV4 Regular (Next: 200)
****
Offline Offline

Last Login: 19 May, 2013, 00:12:41
Date Registered: 18 April, 2011, 18:01:37
Posts: 192


Topic starter
Total Post Ratings: +7

View Profile
« Reply #23 on: 04 September, 2011, 16:57:00 »
0

I got it fixed Smiley Development continues... (school starts soon, though, so progress will slow down a lot)
Logged


Are you wondering who Sammy is? My avatar is Sammy.
   
sammyMaX
LV4 Regular (Next: 200)
****
Offline Offline

Last Login: 19 May, 2013, 00:12:41
Date Registered: 18 April, 2011, 18:01:37
Posts: 192


Topic starter
Total Post Ratings: +7

View Profile
« Reply #24 on: 04 September, 2011, 21:06:59 »
0

Almost done with addition! Some more screenshots.
Bugs/Annoyances:
✓  A pain to type in input - very unresponsive keys - solved enough!
✓ Input 1 has to be longer than input2 - solved!

After these are fixed, it will be time to go to the focus of the program, multiplication! Of course, this also includes functions composed of multiplication - powers, nCr, nPr, and factorial. The two biggest problems (I foresee) are memory allocation (especially for things like factorial) and more annoyances with processing input.


* ADDitionZ.jpg (16.15 KB, 320x240 - viewed 150 times.)

* AdditionZ2.png (3.69 KB, 320x240 - viewed 149 times.)
« Last Edit: 06 September, 2011, 22:17:56 by sammyMaX » Logged


Are you wondering who Sammy is? My avatar is Sammy.
   
sammyMaX
LV4 Regular (Next: 200)
****
Offline Offline

Last Login: 19 May, 2013, 00:12:41
Date Registered: 18 April, 2011, 18:01:37
Posts: 192


Topic starter
Total Post Ratings: +7

View Profile
« Reply #25 on: 11 September, 2011, 16:40:21 »
0

School has started, but the work hasn't piled up yet Smiley I finished multiplication, and it's bug free, as far as I can tell. I'm quite proud of my algorithm - it's slightly better than how a person would multiply numbers on paper, in that their is no buffer made for the product of the top multiplicand and one of the digits in the bottom. This should prove very useful and increase capacity by a lot (maybe double the length possible) for operations like 2^5000. My program stores numbers with one digit per byte, so numbers with millions of digits should be computable, with speed permitting.

Time to move on to the heart of the program - large number functions such as factorials and powers! After that, I will write the all-important large number interface so one could actually do useful things with the number, like see the nth digit of it (when there are so many digits the screen can't fit them all).


* YAY.png (3.33 KB, 320x240 - viewed 130 times.)
« Last Edit: 11 September, 2011, 16:41:02 by sammyMaX » Logged


Are you wondering who Sammy is? My avatar is Sammy.
   
sammyMaX
LV4 Regular (Next: 200)
****
Offline Offline

Last Login: 19 May, 2013, 00:12:41
Date Registered: 18 April, 2011, 18:01:37
Posts: 192


Topic starter
Total Post Ratings: +7

View Profile
« Reply #26 on: 25 September, 2011, 15:56:34 »
0

Hi guys it's been a while Smiley I have some time this weekend so I'm hoping to get at least some work done on this program.
Logged


Are you wondering who Sammy is? My avatar is Sammy.
   
sammyMaX
LV4 Regular (Next: 200)
****
Offline Offline

Last Login: 19 May, 2013, 00:12:41
Date Registered: 18 April, 2011, 18:01:37
Posts: 192


Topic starter
Total Post Ratings: +7

View Profile
« Reply #27 on: 01 October, 2011, 03:14:15 »
0

Now powers are done, but the result can only be less than 37 digits long (width of screen) I haven't bothered to program anything for output longer than that, since multiplication and addition would never get numbers that big. Expect an update (hopefully) tomorrow.
Logged


Are you wondering who Sammy is? My avatar is Sammy.
   
sammyMaX
LV4 Regular (Next: 200)
****
Offline Offline

Last Login: 19 May, 2013, 00:12:41
Date Registered: 18 April, 2011, 18:01:37
Posts: 192


Topic starter
Total Post Ratings: +7

View Profile
« Reply #28 on: 16 January, 2012, 02:28:50 »
0

Help?


* nippy.png (3.88 KB, 320x240 - viewed 76 times.)

* nippy2.png (3.86 KB, 320x240 - viewed 75 times.)
Logged


Are you wondering who Sammy is? My avatar is Sammy.
   
Hayleia
Programming Absol
LV11 Super Veteran (Next: 3000)
***********
Offline Offline

Last Login: Today at 19:30:26
Date Registered: 01 June, 2011, 20:12:47
Location: ud-ud ?
Posts: 2057


Total Post Ratings: +256

View Profile
« Reply #29 on: 18 January, 2012, 19:18:50 »
0

Is the problem that it can't display the whole number and puts "..." instead ?
I don't know anything about your program but if it treats the output as a string, it can check the length and split it if needed to display parts of it (I don't know if that is possible or if that can work Tongue).
Logged





Spoiler for what I am according to...:
me: useless
Pokemon Test: an Absol
turiqwalrus: an eggplant
p2: A HUMAN BEING !
Blackpilar and p2: iplantonlyplantwantplanttoplantknowplantifplantyouplantareplantaplantboyplantorplantaplantgirlplant
click here to know where you got your last +1s
Pages: 1 [2] 3 4 5   Go Up
  Print  
 
Jump to:  

Powered by EzPortal
Powered by MySQL Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Powered by PHP
Page created in 0.187 seconds with 31 queries.
Skin by DJ Omnimaga edited from SMF default theme with the help of tr1p1ea.
All programs, games and songs avaliable on this website are property of their respective owners.
Best viewed in Opera, Firefox, Chrome and Safari with a resolution of 1024x768 or above.