Jump to content

User:Lucas Brown: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
mNo edit summary
mNo edit summary
Line 34: Line 34:




In the following program, l[y] means "the yth item of list l," where the enumeration of elements begins by labeling the first element "1."
In the following program, l[y] means "the yth item of list l," where the enumeration of elements begins by labeling the first element "1." The variable x is a previously existing, user-defined variable.
#define USE_TI89
#define USE_TI89
#define OPTIMIZE_ROM_CALLS
#define OPTIMIZE_ROM_CALLS

Revision as of 03:20, 6 November 2008

Hello all...

I am a sophomore at Rancho Bernardo High School, and my involvement there used to be, in addition to regular classwork, playing the Euphonium their band, the Royal Regiment, as well as the Academic League, in which I was the star player on the Freshman team, but scheduling issues have forced me to drop band. The new season of AL has not yet begun, so I do not know how I shall fare this year. Aside from AL, I am known for being just about the smartest student the school has, seeing as I have eclipsed the highest level of mathematics they have to offer.

That is all for now. I may write more in the future.


In the following program, l[y] means "the yth item of list l," where the enumeration of elements begins by labeling the first element "1." The variable x is a previously existing, user-defined variable.

#define USE_TI89
#define OPTIMIZE_ROM_CALLS
#include <tigcclib.h>
void _main(void)
a:
x++;
int t = 2;
DrawStr(1,1,"x");
DrawStr(9,1,"t");
DrawStr(1,7,x);
DrawStr(9,7,t);
{
	c=t;
	DelVar l;
	int y = 1;
	{
		a=c-floor(c/x^2);
		c=c-a*x^2;
		b=c-floor(c/x);
		c=c-b*x;
		c=a^2+b^2+c^2;
		l[y]=c;
		if (c=1)(goto b);
		if (y>2*x);
		{
			for (t,1,y)
			{
				if (l[y]==c)(goto a);
			}
		}
		y++;
		DrawStr(17,1,y);
		b:
		t++;
		if (t==x^x)
		{
			DrawStr(25,1,"Happy!");
			Pause
		}
		DrawStr(9,7,t);
	}
}