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 - Happybobjr

Pages: 1 ... 164 165 [166]
2476
Axe / Re: i am a noob i wish for help
« on: June 02, 2010, 07:08:25 pm »
the reason i am doing this in axe is because i want to learn axe
this is where most of the learning happens for me

sorry about double posting i didn't realize
i am glad to see i wasn't banned for a mistake :)

2477
Axe / Re: i am a noob i wish for help
« on: June 02, 2010, 05:46:13 pm »
i am open to any and all suggestions / corrections.
like figuring out if i can find if a number is prime or composite that is above 65000 or whatever the number is

2478
Axe / Re: i am a noob i wish for help
« on: June 02, 2010, 05:15:55 pm »
I'm sorry, but what exactly is your program supposed to do? I haven't quite gotten that yet.

One thing I do notice though is that if this is in Axe then lines 3, 4, and 5 can be simplified to:

Code: [Select]
0→H→G+3→B

prime and composite finder

2479
Axe / Re: i am a noob i wish for help
« on: June 02, 2010, 03:54:45 pm »
ok i looked at these when i was at school but unfortunatly i haven't found a way to bypass the restrictions on installing the ti drivers for the schools computers so i could not add this on but here it is
updated working code for prime and composite
graphics:1/5
working: 4/5  (number must be below 5)
code clean?: 2/5
effort: 3/5

Code: [Select]
.AX3
0=>H
0=>G
3=>B
Lbl 2
getKey=>G
If G=33:H*10H:End
If G=34:H*10=>H:H+1=>H:End
If G=26:H*10=>H:H+2=>H:End
If G=18:H*10=>H:H+3=>H:End
If G=35:H*10=>H:H+4=>H:End
If G=27:H*10=>H:H+5=>H:End
If G=19:H*10=>H:H+6=>H:End
If G=36:H*10=>H:H+7=>H:End
If G=28:H*10=>H:H+8=>H:End
If G=20:H*10=>H:H+9=>H:End
If H (not equal) 0:Output(5,1,H (black triangle) Dec):End
If G (not equal) 9:Goto 2:End
H=>C
If C^2=0:Goto 1:End
While (C/B)(greater than or equal to) squ(C)                 “squ = square root of”
If C^B=0
Goto 1:End
B+2=>B
End
"PRIME"=>Str1
Disp Str1
Goto (theta)
Lbl 1
"Composite"=>Str2
Disp Str2
Lbl (theta)
Pause 999

2480
Axe / Re: i am a noob i wish for help
« on: June 01, 2010, 11:02:43 pm »
I'm new to Axe too, but I'm pretty sure this is the problem:

Axe doesn't just translate BASIC commands. It crates a totally separate language, so it only accepts the ones that it itself supports, and so most of the commands that you'd use in BASIC, like Remainder(, would not work in Axe.

And for those of you more experienced in Axe programming, I have a question too: Is it compatible with OS 2.53?


i changed to = int(  "interger" for new method that works as well if not better"
............................................
new question
is there any way to have commands such as prompt or input to work
if i have either it will give me err when compiling err.bad symbol
any way i can go around it so i can have a user input a number.
i have gotten this to work (w/o inputing the number) so that is the final step
i will try to add the code tomarrow.  its already 11:00 pm right now.

2481
The Axe Parser Project / Re: Bug Reports
« on: June 01, 2010, 10:57:05 pm »
quick bug.

err. unknown

if you fail to compile  a prog.  ( err. block )
leave to go to the bathroom to make a number 2 for a while. ( lol a number 2 | math lol )
oh well when i got back the screen had gone dark.  i pressed on.
the compiler now said

err. block
err. unknown



i did have to clear ram to get out of the given screen the 1st time i tried
the 2nd time it was fine
3rd ( haven't tried again yet )

2482
Axe / Re: i am a noob i wish for help
« on: June 01, 2010, 06:49:20 pm »
thanks for the help
i really appreciate this great community where people a patient and help others learn.  none of the "go away noob"
i really appreciate it.

the remainder command is a newer command on the ti-84 that came out with the new os that came out early this year ( the one enabling math-print )
basically

Disp Remainder(5,2)          "  5 divided by 2 "  2 and 1 over 2    remainder 1" "stuff in 1st grade"

outcome would be 1

2483
Other Calculators / Re: Programming Speed
« on: June 01, 2010, 06:44:25 pm »
i am truely amazing at this

2484
The Axe Parser Project / Re: Bug Reports
« on: June 01, 2010, 06:42:45 pm »
quick bug.

err. unknown

if you fail to compile  a prog.  ( err. block )
leave to go to the bathroom to make a number 2 for a while. ( lol a number 2 | math lol )
oh well when i got back the screen had gone dark.  i pressed on.
the compiler now said

err. block
err. unknown

2485
Axe / i am a noob i wish for help
« on: May 31, 2010, 07:27:12 pm »
ok i am extremely new at thiis
what is wrong with my prog.
all i know so far is that i think prompt is not supported
____________________________________________________
sry parents get on just to bug me and dont let me finish
_______________________________________________
also i am completely new at axe so things will look comppletely wrong
_________________________________________________
Code: [Select]
.AXEEE
0->A
1->B
Prompt {C}r
If {C}r less than or equal to 2
Stop
If Remainder({C}r,2)=(0)
A+1->A
While ({C}r//B)  greater than or equal to  (squareroot({C}r))
If Remainder({C}r,B)=(0)
A+1->A
B+2->B
If A greater than or equal to 2
Goto 1
End
Disp "PRIME"
Stop
Lbl 1
Disp "Composite"
Pause
Disp "BYE"

Pages: 1 ... 164 165 [166]