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
« 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
3527
« 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
3528
« 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. call Install_Corelate bcall(_JForceCmdNoChar )
That is all you need to add (6 bytes) to save a lot of headaches
3529
« 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, P n(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: P 2(6)=(6+2)!/(6!2!) P 2(6)=40320/1440 P 2(6)=28 Because of the closure property under addition and multiplication of integers, we also have that P n(r)=P r(n) which can be useful, too. We can also look at nC r alternatively as: P n(r)= r+nC ror P n(r)= r+nC nWe also have the definition of nC r as r+nC n=n!/(r!(n-r)!), so we can show the above statements true: r+nC r=(r+n)!/r!((r+n)-r)! r+nC r=(r+n)!/r!n! and: r+nC n=(r+n)!/n!((r+n)-n)! r+nC n=(r+n)!/n!r! So yeah, just a little fun I am definitely adding this to my master notebook
3530
« 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
« on: April 07, 2011, 03:51:56 pm »
How would it work? Can you give an example?
3532
« 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
« 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
« 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 DS>( is a command I like to use to make For( loops or whatnot (DS>( jumps back)
3535
« 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
« on: April 07, 2011, 02:49:09 pm »
Um, after the Stop, the BASIC parser picks up again 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
« 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 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 I forgot to add Pause 5 in mine. So where is the optimisation? (assuming I had added Pause 5)
3538
« on: April 07, 2011, 12:57:44 pm »
Hehe, Scout, watch this:
3539
« on: April 07, 2011, 12:44:50 pm »
Hehe, nice 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
« 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:
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
|