Author Topic: BigNumNum Cruncher  (Read 34388 times)

0 Members and 1 Guest are viewing this topic.

Offline sammyMaX

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 204
  • Rating: +9/-0
    • View Profile
Re: [Ndless] BigNumNum Cruncher
« Reply #15 on: August 31, 2011, 11:42:36 am »
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.

Are you wondering who Sammy is? My avatar is Sammy.
   

Offline sammyMaX

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 204
  • Rating: +9/-0
    • View Profile
Re: [Ndless] BigNumNum Cruncher
« Reply #16 on: September 02, 2011, 05:11:57 pm »
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  8)

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)

Are you wondering who Sammy is? My avatar is Sammy.
   

Offline Hayleia

  • Programming Absol
  • Coder Of Tomorrow
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3367
  • Rating: +393/-7
    • View Profile
Re: [Ndless] BigNumNum Cruncher
« Reply #17 on: September 03, 2011, 02:21:58 am »
Great work !!!
* Hayleia is sad to not have an Nspire :'(
[offtopic] You also can go to Graphmastur's Power of two posters only topic, since you have 64 posts [/offtopic]
I own: 83+ ; 84+SE ; 76.fr ; CX CAS ; Prizm ; 84+CSE
Sorry if I answer with something that seems unrelated, English is not my primary language and I might not have understood well. Sorry if I make English mistakes too.

click here to know where you got your last +1s

Offline Chockosta

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 447
  • Rating: +169/-6
    • View Profile
Re: [Ndless] BigNumNum Cruncher
« Reply #18 on: September 03, 2011, 04:29:28 am »
Well done !

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

Offline sammyMaX

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 204
  • Rating: +9/-0
    • View Profile
Re: [Ndless] BigNumNum Cruncher
« Reply #19 on: September 03, 2011, 10:23:11 am »
Thanks!
@Hayleia: before posting this (when I had 64 posts) I still got "An Error Has Occurred!" page. :(

Are you wondering who Sammy is? My avatar is Sammy.
   

Offline Hayleia

  • Programming Absol
  • Coder Of Tomorrow
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3367
  • Rating: +393/-7
    • View Profile
Re: [Ndless] BigNumNum Cruncher
« Reply #20 on: September 03, 2011, 10:31:05 am »
I still got "An Error Has Occurred!" page. :(
??? 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 :D
I own: 83+ ; 84+SE ; 76.fr ; CX CAS ; Prizm ; 84+CSE
Sorry if I answer with something that seems unrelated, English is not my primary language and I might not have understood well. Sorry if I make English mistakes too.

click here to know where you got your last +1s

Offline sammyMaX

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 204
  • Rating: +9/-0
    • View Profile
Re: [Ndless] BigNumNum Cruncher
« Reply #21 on: September 03, 2011, 10:38:57 am »
I can't wait :)

Are you wondering who Sammy is? My avatar is Sammy.
   

Offline sammyMaX

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 204
  • Rating: +9/-0
    • View Profile
Re: [Ndless] BigNumNum Cruncher
« Reply #22 on: September 03, 2011, 04:59:23 pm »
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://ourl.ca/119180
« Last Edit: September 03, 2011, 04:59:49 pm by sammyMaX »

Are you wondering who Sammy is? My avatar is Sammy.
   

Offline sammyMaX

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 204
  • Rating: +9/-0
    • View Profile
Re: [Ndless] BigNumNum Cruncher
« Reply #23 on: September 04, 2011, 10:57:00 am »
I got it fixed :) Development continues... (school starts soon, though, so progress will slow down a lot)

Are you wondering who Sammy is? My avatar is Sammy.
   

Offline sammyMaX

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 204
  • Rating: +9/-0
    • View Profile
Re: [Ndless] BigNumNum Cruncher
« Reply #24 on: September 04, 2011, 03:06:59 pm »
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.
« Last Edit: September 06, 2011, 04:17:56 pm by sammyMaX »

Are you wondering who Sammy is? My avatar is Sammy.
   

Offline sammyMaX

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 204
  • Rating: +9/-0
    • View Profile
Re: [Ndless] BigNumNum Cruncher
« Reply #25 on: September 11, 2011, 10:40:21 am »
School has started, but the work hasn't piled up yet :) 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).
« Last Edit: September 11, 2011, 10:41:02 am by sammyMaX »

Are you wondering who Sammy is? My avatar is Sammy.
   

Offline sammyMaX

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 204
  • Rating: +9/-0
    • View Profile
Re: [Ndless] BigNumNum Cruncher
« Reply #26 on: September 25, 2011, 09:56:34 am »
Hi guys it's been a while :) I have some time this weekend so I'm hoping to get at least some work done on this program.

Are you wondering who Sammy is? My avatar is Sammy.
   

Offline sammyMaX

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 204
  • Rating: +9/-0
    • View Profile
Re: [Ndless] BigNumNum Cruncher
« Reply #27 on: September 30, 2011, 09:14:15 pm »
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.

Are you wondering who Sammy is? My avatar is Sammy.
   

Offline sammyMaX

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 204
  • Rating: +9/-0
    • View Profile
Re: [Ndless] BigNumNum Cruncher
« Reply #28 on: January 15, 2012, 07:28:50 pm »
Help?

Are you wondering who Sammy is? My avatar is Sammy.
   

Offline Hayleia

  • Programming Absol
  • Coder Of Tomorrow
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3367
  • Rating: +393/-7
    • View Profile
Re: [Ndless] BigNumNum Cruncher
« Reply #29 on: January 18, 2012, 12:18:50 pm »
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 :P).
I own: 83+ ; 84+SE ; 76.fr ; CX CAS ; Prizm ; 84+CSE
Sorry if I answer with something that seems unrelated, English is not my primary language and I might not have understood well. Sorry if I make English mistakes too.

click here to know where you got your last +1s