Math Is Fun Forum

  Discussion about math, puzzles, games and fun.   Useful symbols: ÷ × ½ √ ∞ ≠ ≤ ≥ ≈ ⇒ ± ∈ Δ θ ∴ ∑ ∫ • π ƒ -¹ ² ³ °

You are not logged in.

#426 Re: Dark Discussions at Cafe Infinity » weight lifting miracle today » 2012-03-22 20:09:24

I actually used to like old comments, even if they weren't valid anymore.
But we used to have a log at the top of each file, that explained the changes we made to it and programmer initials and a date.
But some files had like 15 procedures in them, so it might be wise to have a "log" of all the comments
at the beginning of each routine, and never erase the old ones, just put them in cronological order, or backward order.
But i already have a readme.txt file that briefly describes the program, the kbd interrupt handler, the screen mode,
and what my intentions are, so that was a start.
Putting the unassembled mneumonics in a text file is a good idea i suppose, i'll keep it in mind. 
But for now, I'm enjoying coding straight into memory and "w" (writing) the file back out as a *.com file of 61222 bytes
in length with the stack pointer SP pointed near the very end of the file.  I don't do the "call" command because whenever
i do it crashes, so obviously i am missing something about ss:sp, and don't understand something.

#427 Re: Dark Discussions at Cafe Infinity » weight lifting miracle today » 2012-03-22 19:48:16

Yeah, years ago, i used to "pipe" (with ">>") the assembly code into a debug session and then i had a way to comment.
I once knew a programmer who hated comments because they can get left behind even when the code changes and then become inaccurate, so he just named his routines wisely and changed their names if the routines changed.   That was in C, however.

#428 Re: Dark Discussions at Cafe Infinity » weight lifting miracle today » 2012-03-22 19:33:33

Good point, thanks.  Sometimes I throw them in to make building the program easier to read, like a newline for a new idea paragraph.  Usually i end up leaving just one "nop" between every 10 to 15 commands just for readability as long as the program still runs fast enough.  I think as the program gets bigger, i might put the locations of various routines in a readmelogfile so i can look back years later and relearn what i did.  Sometimes, i even put in a jmp over an ascii word i put in the code that names a routine so if you use the "d" command (display), then you can read the keyword in the right margin in debug, since the hex is in the middle of the screen with "d" and the alpha readable version ascii is in the right margin.

#429 Re: Dark Discussions at Cafe Infinity » weight lifting miracle today » 2012-03-22 19:22:56

Oh yeah!! that's what it was.  When I moved a block, the ja's and jb's within the block were fine but the jmp that went to something outside the block moved had to be fixed because it was relative.  Thanks for clearing that up!

#430 Re: Dark Discussions at Cafe Infinity » weight lifting miracle today » 2012-03-22 19:05:54

Another neat command in debug.exe is the "m" command which lets you compact code you have padded with "nop"s (90H) after you have it working.  You have to be careful that the jmp commands still jump to the right places though or fix them. 
"ja" and "jb" seem to be relative so they don't have problems if you "m" (move) them.

#431 Re: Help Me ! » Equations with parenthesis? » 2012-03-22 19:00:57

Wow!!!! 122,000 views, i like that number!!!!

#432 Re: Introductions » Winter Lover » 2012-03-22 08:33:39

i think we were around before the big bang in some other form.  does that sound strange to you?  i believe there was no beginning and will be no end after the next big crash...

#433 Re: Dark Discussions at Cafe Infinity » weight lifting miracle today » 2012-03-22 08:31:28

thanks!  i'm writing it all in debug.exe from xp, comes with windows, but i think they discontinued giving the program out in windows 7, based on a rental company in town, and debug wasn't found when i typed it in to a DOS comand window.  Nevertheless, i made a copy of it on a memory stick
for the future if it still works.  So this means i am using assembly language or machine code, they are one and the same, except debug knows the words for the hex values so i can type english commands like mov dx,b800 and mov ds,dx and cmp si,2000, etc...

#434 Re: Dark Discussions at Cafe Infinity » weight lifting miracle today » 2012-03-22 08:22:29

A funny thing about the hand, i know it was the right hand, but sometimes i forget now.
If i don't do anything strenuous for a week, then about 3 weeks ago, the pain game back
only about 10% of before when i did something.  So all i did was as before, grip hard onto
something and lift something to with heavy grip.  And presto, all is fixed again.  Who knows
what's inside my hand or wrist, but it is basically way better than it was for years with the
persistent pain when used in certain directions.

Now the video game is still just beginning, i'm drawing barriers on the screen to drive the
tanks around and hide behind.  Also, now it has been nearly forty days on my new level of medication, which is lower, thank god, and i am doing even better than before.  My perception
of the world is getting more and more optimistic, and i am seeing everyone more equally and
appreciating people's differences more instead of finding faults.

I'm still memorizing the elements masses at times but only once a week or so.  I sometimes
surprise myself at knowing some of them to 6 to 9 digits when i didn't think i knew it.

All is good in New Hampshire, and the snow just disappeared and spring is on strong.

#435 Re: Maths Is Fun - Suggestions and Comments » Pi » 2012-03-22 08:13:25

Nice pi page!,mif.  I read the 101 digits and it is perfect to how i say it since college.  no errors.
excellent work.  I love the drawings with the 1 for the radius and the 1 for the diameter.
very nice.

#436 Re: Dark Discussions at Cafe Infinity » weight lifting miracle today » 2012-03-14 01:39:13

hi bobby, i'm writing a video game now in xp's dos mode full screen with ax=5 int 10 vid mode.
Has only 320 by 200 pixels and has only 4 colors white black sky blue and pink.
Got the int9 keyboard handler working the way i want it to use the home row of keyboard for
two players at same time.  Still haven't decided exactly how the game is going to act like.  I'm torn between aspects of a tank game we used to have and the famous astroids game.  i think i'll
have two ships or tanks on the screen but i'm not sure yet exactly if they will work together or fight against each other.     also i thought that i could have an astroids game that every 4 seconds flips the controls to the other player so they have to work together, with different colors to indicate whose turn it is.   Remember astroids by atari?

#437 Re: Dark Discussions at Cafe Infinity » weight lifting miracle today » 2012-03-04 00:22:58

:i;can;read;it;great:
:but;my;m;d;can;t;read;it;at;all;so;i;summarized;it;for;her:
:by;the;way:
:i;made;a;second;primary;6.5Gig;partition;on;my;harddrive:
∧;i;was;wondering;if;you;were;gonna;get;a;dual;boot:
what;operating;system;would;you;get;for;an;old;2004;pentium:
:it;s;got;500;meg;of;ram:
:i;read;a;little;about;freebsd;and;linux:
:anything;else;out;there;that;you;think;i;could;have;more;fun;with:
:keep;in;mind;i;want;hopefully;access;in;programs;i;write;to;a;lot;of;ram:
∧;i;also;might;want;direct;memory;access;to;the;display;adapter;screen;buffer;or;video;ram;if;there;is;that;in;this;operating;system;i;choose:
:so;basically;i;kinda;want;32;bit;dos;without;the;one;meg;barrier:
i'll stop writing this way now for your ease of reading.

#438 Re: Dark Discussions at Cafe Infinity » weight lifting miracle today » 2012-03-04 00:11:39

:Yeah;i;m;typing;it;like;this:
:for;fun:
∧:so;far;the;diary;is;thirteen;pages;long:
:sixty;lines;per;page;using;the;syn;editor;for;coders:

#439 Re: Introductions » Winter Lover » 2012-03-03 05:11:19

What came first?
1. love
2. thought
3. things moving around
4. static things in clouds
5. elements
6. tinier parts of atoms
7. a big blob
So do you think the mental world preceded the physical objects or the other way around?

#440 Re: Introductions » Winter Lover » 2012-02-26 13:06:47

That's an interesting point too, matrix illusion, like stuck in a computer program.
You know, there is also the world of dreaming when you are asleep.
Do you have an opinion on what might the implications of that world?

#441 Re: Maths Is Fun - Suggestions and Comments » Zoomable Number Line » 2012-02-26 12:35:08

ooh wow, that is very very nice!!  Thank you so very much, I will make use of it in the future!!!
It works perfectly in google chrome.

#442 Re: This is Cool » Cool graphs using the sgn(x) function!!! » 2012-02-26 12:29:39

thanks for the examples (bobby) and definition (anom).

#443 Re: Help Me ! » combinations, not permutations » 2012-02-26 12:26:49

Yeah, I love this polynomial thing.
How long have you known about it?
I'm interested who taught it to you or if you read about it a long time ago.

#444 Re: Help Me ! » Count the number of fingers of hand » 2012-02-26 12:24:35

Oh, the image is really how many put together into one, the top one, not the white one below.

#445 Re: Introductions » Winter Lover » 2012-02-26 12:18:45

I am of the opinion that each critter, creature, and character that roams this world serves a purpose in the story of time.  Imagine for a moment that even an earthworm may possess a love of self and a love of others.  This may sound unlikely, yet its truth is not easily refutable unless you could put yourself into the place of the earthworm.  Consider perhaps that everything, rocks, grass, and brainy creatures too are all priceless from this point forward and see what happens.

#446 Re: Maths Is Fun - Suggestions and Comments » Zoomable Number Line » 2012-02-25 02:40:28

hello math is fun.  I was wondering if you could have a tiny box that accepts numbers separated by carriage returns or commas, whatever you decide, so I could paste data from my BASIC programs into the box and the points would become marked on the number line.  Also, each time you paste, the color of the dots would change for that group by going around a circle of usable colors.   If this is too hard to implement in the given time you have, just put it on the back burner for a few years and I'll still use it if it ever comes to fruition.  Thanks a lot.

#447 Re: Dark Discussions at Cafe Infinity » weight lifting miracle today » 2012-02-25 02:33:48

very interesting.  So did you know that rhodium is 102.90550?  That may be wrong.  I'll have to look it up?
I have just got into it again after stopping for a while.  Yup it is right says wiki.  So I haven't been here for a week or two.  I'm adjusting to a lower dosage in order to stop dysphagia and to lose weight and to remain sane.  So far so good, though, i've been keeping a diary instead of coming on this forum.

#448 Re: This is Cool » Cool graphs using the sgn(x) function!!! » 2012-02-25 02:29:01

what is this "sgn" function?  Can you provide a definition of it.

#449 Re: Help Me ! » Count the number of fingers of hand » 2012-02-25 02:25:17

i dont understand how you get all the points in place in the first place.  Who put down the 3 colored points?
Is the hand flat on to the camera?  Are you neglecting the vanishing point or perspective and using the image as is?

#450 Re: Help Me ! » combinations, not permutations » 2012-02-15 07:30:48

let me test your equation with a trivial example.
one apple
one pear
two bananas
Just those four things.


becomes (devient)

and the results are true! Thanks bobby!
1 way pick all 4.
3 ways pick 3 of the 4.
4 ways to pick 2 of the 4.
3 ways to pick 1 of the 4, since there are only 3 types of fruit.
1 way to pick nothing.
I am thrilled by this incredible formula!!!!!
I know you're not Jane because Jane talks differently.
You can sense these things.
However, I am glad you liked the compliment smile

Board footer

Powered by FluxBB