Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Xeda112358

Pages: 1 ... 234 235 [236] 237 238 ... 317
3526
Correlation / Re: Correlation Beta Bug Reports
« on: April 07, 2011, 10:19:02 pm »
Thanks :) I keep using it on accident and it was just bugging me every time I cleared my RAM. I have gotten into the habit of selecting apps by number, but since Correlation was put on it, I keep forgetting the Graph3 and GrpTool are moved down the list XD

3527
Correlation / Re: Correlation Beta Bug Reports
« on: April 07, 2011, 10:14:35 pm »
Yeah, I figured. Either way, it is good practice to let the app exit if it isn't supposed to do anything. You can still use the bcall which will exit an app automatically, without crashing. Usually if I download an app, I don't expect it to crash if I try to run it XD

3528
Correlation / Re: Correlation Beta Bug Reports
« on: April 07, 2011, 10:03:07 pm »
This was mentioned on IRC and I have been meaning to bring this up. You should make it so that running the App from the Apps menu either installs Correlate or it just exits.
Code: [Select]
call Install_Corelate
 bcall(_JForceCmdNoChar )
That is all you need to add (6 bytes) to save a lot of headaches :P

3529
Math and Science / Re: Sums, Pascal, and Equations for Sets
« on: April 07, 2011, 08:44:58 pm »
Okay, so I was playing around with that idea yesterday about how the diagonals in Pascal's triangle are simply the sum of the diagonal before it and I combined that with some other things I did with it and I came up with a few things:
First, Pn(r)=(r+n)!/(r!n!). This means that if you want to check the third diagonal for the seventh number, n=2 and r=6 (because they offset at 0). This yields:
P2(6)=(6+2)!/(6!2!)
P2(6)=40320/1440
P2(6)=28

Because of the closure property under addition and multiplication of integers, we also have that Pn(r)=Pr(n) which can be useful, too. We can also look at nCr alternatively as:
Pn(r)=r+nCr
or
Pn(r)=r+nCn

We also have the definition of nCr as r+nCn=n!/(r!(n-r)!), so we can show the above statements true:

r+nCr=(r+n)!/r!((r+n)-r)!
r+nCr=(r+n)!/r!n!
and:
r+nCn=(r+n)!/n!((r+n)-n)!
r+nCn=(r+n)!/n!r!

So yeah, just a little fun XD I am definitely adding this to my master notebook :D

3530
BatLib / Re: BASIC ReCode v2.00
« on: April 07, 2011, 03:57:10 pm »
Okay, then in that case maybe I can make it so that if you do /Then, the comment will end with an End statement (to save a byte?) Would that work?

3531
BatLib / Re: BASIC ReCode v2.00
« on: April 07, 2011, 03:51:56 pm »
How would it work? Can you give an example?

3532
BatLib / Re: BASIC ReCode v2.00
« on: April 07, 2011, 03:45:44 pm »
Hehe, thanks :) I was actually a little iffy about using //, but it really does look nice :) Also, it only works after a newline and it pretty much just skips the whole line and moves to the next one when it reaches a //

Does anybody else have any coding conventions that I should add?

3533
BatLib / Re: BASIC ReCode v2.00
« on: April 07, 2011, 03:39:25 pm »
Yeah, I plan to make a new update soon, anyway. I have to fix >, I have added // comments as well as 2 other commands. I am working on command 93 which will let you insert a list somewhere inside another list. I also need to add 3 more commands to do that for strings (deleteing bytes, inserting, and inserting other strings).

3534
BatLib / Re: BatLib
« on: April 07, 2011, 02:56:30 pm »
IS>( only jumps forward a number of lines, not based on the commands. So if you aren't careful, you can jump ahead to BASIC code XD DS>( is a command I like to use to make For( loops or whatnot :D  (DS>( jumps back)

3535
BatLib / Re: BatLib
« on: April 07, 2011, 02:52:13 pm »
Yeah, if you need to, you can use IS>( to jump forward a specific number of lines, but that is a little advanced and complicated.

3536
BatLib / Re: BatLib
« on: April 07, 2011, 02:49:09 pm »
Um, after the Stop, the BASIC parser picks up again :P The BASIC parser reads the next line which is End and it say "What is this?! This doesn't belong here!"

Also, you can use Line( instead of dim(29 in ReCode. It is faster that way ;)

3537
BatLib / Re: BatLib Demo Programs
« on: April 07, 2011, 01:05:10 pm »
Hehe, all it does is draw inverted vertical lines, updates the screen and then reinverts so that the screen is back to normal, but it doesn't look like it :D That is why I don't make commands that automatically update the screen :) It makes graphics faster and nicer looking :)

EDIT:
Um, since it uses 2 bytes, I would rather not, Scout. Also, Pause A will cause it to cycle between fast and slow, but I guess that is an effect XD I forgot to add Pause 5 in mine. So where is the optimisation? (assuming I had added Pause 5)

3538
BatLib / Re: BatLib Demo Programs
« on: April 07, 2011, 12:57:44 pm »
Hehe, Scout, watch this:

3539
BatLib / Re: BatLib
« on: April 07, 2011, 12:44:50 pm »
Hehe, nice :D As a few tips for optimisation, instead of AxesOff, ClrDraw, and DispGraph, inside the ReCode loop you can just do Fill(0. Also, if you want to, you can do dim(22,"FDCB00AE",40 instead of using two dim( commands :) Thanks, Scout!

3540
BatLib / Re: BatLib Demo Programs
« on: April 07, 2011, 12:38:40 pm »
Hehe, nice! I am glad somebody is having fun with it! Another technique to do that is to use dim(56,8,A and that will really quickly draw a horizontal line at A. So for example:
Code: [Select]
dim(56,4        ;Clears the graph screen leaving modes intact
For(A,0,63
dim(56,8,A,99
End

Pages: 1 ... 234 235 [236] 237 238 ... 317